home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1993-12-20 | 17.3 KB | [TEXT/PRLG] |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
You can browse this item here: Open Prolog Extras
Confidence | Program | Detection | Match Type | Support
|
---|
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, inited, Mon Dec 20 16:57:41 1993, modified Mon Dec 20 16:57:41 1993, creator 'PRLG', type ASCII, 17056 bytes "Open Prolog Extras" , at 0x4320 354 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [PRLG] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 12 4f 70 65 6e 20 50 | 72 6f 6c 6f 67 20 45 78 |..Open P|rolog Ex|
|00000010| 74 72 61 73 00 00 00 00 | 00 00 00 00 00 00 00 00 |tras....|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 50 52 4c | 47 01 00 00 00 00 00 00 |.TEXTPRL|G.......|
|00000050| 00 00 00 00 00 42 a0 00 | 00 01 62 a9 3b d0 55 a9 |.....B..|..b.;.U.|
|00000060| 3b d0 55 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |;.U.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 fa d8 00 00 |........|........|
|00000080| 54 68 65 20 76 65 72 73 | 69 6f 6e 20 6f 66 20 4f |The vers|ion of O|
|00000090| 70 65 6e 20 50 72 6f 6c | 6f 67 20 74 6f 20 77 68 |pen Prol|og to wh|
|000000a0| 69 63 68 20 74 68 69 73 | 20 64 6f 63 75 6d 65 6e |ich this| documen|
|000000b0| 74 20 72 65 66 65 72 73 | 20 69 73 20 67 69 76 65 |t refers| is give|
|000000c0| 6e 20 69 6e 20 74 68 65 | 20 47 65 74 20 49 6e 66 |n in the| Get Inf|
|000000d0| 6f c9 20 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 20 |o. info|rmation |
|000000e0| 66 6f 72 20 74 68 69 73 | 20 64 6f 63 75 6d 65 6e |for this| documen|
|000000f0| 74 2e 0d 0d a5 20 4f 70 | 65 6e 20 50 72 6f 6c 6f |t.... Op|en Prolo|
|00000100| 67 20 45 78 74 72 61 73 | 0d 53 6f 6d 65 20 6f 66 |g Extras|.Some of|
|00000110| 20 74 68 65 20 75 73 65 | 66 75 6c 20 65 78 74 65 | the use|ful exte|
|00000120| 72 6e 61 6c 20 70 72 65 | 64 69 63 61 74 65 73 20 |rnal pre|dicates |
|00000130| 69 6e 20 4f 70 65 6e 20 | 50 72 6f 6c 6f 67 20 61 |in Open |Prolog a|
|00000140| 72 65 20 6c 69 73 74 65 | 64 20 62 65 6c 6f 77 2e |re liste|d below.|
|00000150| 0d 43 68 65 63 6b 20 66 | 6f 72 20 74 68 65 20 65 |.Check f|or the e|
|00000160| 78 69 73 74 65 6e 63 65 | 20 6f 66 20 74 68 65 73 |xistence| of thes|
|00000170| 65 20 70 72 65 64 69 63 | 61 74 65 73 20 61 73 20 |e predic|ates as |
|00000180| 64 65 73 63 72 69 62 65 | 64 20 69 6e 20 4f 70 65 |describe|d in Ope|
|00000190| 6e 20 50 72 6f 6c 6f 67 | 20 49 6e 66 6f 20 2d 0d |n Prolog| Info -.|
|000001a0| 69 74 27 73 20 61 6c 77 | 61 79 73 20 70 6f 73 73 |it's alw|ays poss|
|000001b0| 69 62 6c 65 20 66 6f 72 | 20 74 68 65 20 64 6f 63 |ible for| the doc|
|000001c0| 75 6d 65 6e 74 61 74 69 | 6f 6e 20 74 6f 20 62 65 |umentati|on to be|
|000001d0| 20 6f 75 74 20 6f 66 20 | 64 61 74 65 2e 0d 4d 61 | out of |date..Ma|
|000001e0| 69 6c 20 75 73 20 69 66 | 20 79 6f 75 20 73 65 65 |il us if| you see|
|000001f0| 20 73 6f 6d 65 74 68 69 | 6e 67 20 79 6f 75 20 63 | somethi|ng you c|
|00000200| 61 6e 27 74 20 75 6e 64 | 65 72 73 74 61 6e 64 20 |an't und|erstand |
|00000210| 6f 72 20 75 73 65 20 2d | 20 74 68 61 74 20 77 61 |or use -| that wa|
|00000220| 79 2c 0d 77 65 20 6d 69 | 67 68 74 20 66 69 78 20 |y,.we mi|ght fix |
|00000230| 74 68 65 20 64 6f 63 75 | 6d 65 6e 74 61 74 69 6f |the docu|mentatio|
|00000240| 6e c9 0d 0d a5 20 4d 75 | 6c 74 69 70 6c 65 20 43 |n.... Mu|ltiple C|
|00000250| 68 6f 69 63 65 0d 0d a5 | 20 41 6e 20 65 78 74 65 |hoice...| An exte|
|00000260| 72 6e 61 6c 20 70 72 65 | 64 69 63 61 74 65 20 68 |rnal pre|dicate h|
|00000270| 61 73 20 62 65 65 6e 20 | 61 64 64 65 64 3a 20 27 |as been |added: '|
|00000280| 73 79 73 74 65 6d 24 6d | 75 6c 74 69 70 6c 65 24 |system$m|ultiple$|
|00000290| 63 68 6f 69 63 65 27 2f | 31 35 2e 0d 49 74 20 69 |choice'/|15..It i|
|000002a0| 73 20 61 6c 73 6f 20 70 | 72 65 73 65 6e 74 65 64 |s also p|resented|
|000002b0| 20 61 73 20 61 20 73 61 | 6d 70 6c 65 20 65 78 74 | as a sa|mple ext|
|000002c0| 65 72 6e 61 6c 20 70 72 | 65 64 69 63 61 74 65 2c |ernal pr|edicate,|
|000002d0| 20 77 72 69 74 74 65 6e | 20 69 6e 20 4d 50 57 20 | written| in MPW |
|000002e0| 70 61 73 63 61 6c 2e 0d | 0d 27 73 79 73 74 65 6d |pascal..|.'system|
|000002f0| 24 6d 75 6c 74 69 70 6c | 65 24 63 68 6f 69 63 65 |$multipl|e$choice|
|00000300| 27 2f 31 35 20 70 72 65 | 73 65 6e 74 73 20 61 20 |'/15 pre|sents a |
|00000310| 64 69 61 6c 6f 67 20 63 | 6f 6e 74 61 69 6e 69 6e |dialog c|ontainin|
|00000320| 67 20 61 6e 20 4f 4b 20 | 62 75 74 74 6f 6e 2c 20 |g an OK |button, |
|00000330| 61 6e 20 6f 70 74 69 6f | 6e 61 6c 20 73 65 63 6f |an optio|nal seco|
|00000340| 6e 64 20 62 75 74 74 6f | 6e 2c 20 61 6e 20 6f 70 |nd butto|n, an op|
|00000350| 74 69 6f 6e 61 6c 20 6d | 65 73 73 61 67 65 20 61 |tional m|essage a|
|00000360| 6e 64 20 75 70 20 74 6f | 20 66 69 76 65 20 65 64 |nd up to| five ed|
|00000370| 69 74 20 62 6f 78 65 73 | 2c 20 65 61 63 68 20 77 |it boxes|, each w|
|00000380| 69 74 68 20 69 74 73 20 | 6f 77 6e 20 70 72 6f 6d |ith its |own prom|
|00000390| 70 74 2e 0d 49 74 20 72 | 65 74 75 72 6e 73 20 74 |pt..It r|eturns t|
|000003a0| 68 65 20 74 65 78 74 20 | 6f 66 20 74 68 65 20 62 |he text |of the b|
|000003b0| 75 74 74 6f 6e 20 70 72 | 65 73 73 65 64 2e 0d 0d |utton pr|essed...|
|000003c0| 27 73 79 73 74 65 6d 24 | 6d 75 6c 74 69 70 6c 65 |'system$|multiple|
|000003d0| 24 63 68 6f 69 63 65 27 | 28 44 69 61 6c 6f 67 4e |$choice'|(DialogN|
|000003e0| 61 6d 65 41 74 6f 6d 2c | 4d 65 73 73 61 67 65 53 |ameAtom,|MessageS|
|000003f0| 74 72 69 6e 67 2c 4f 4b | 42 75 74 74 6f 6e 4e 61 |tring,OK|ButtonNa|
|00000400| 6d 65 41 74 6f 6d 2c 53 | 65 63 6f 6e 64 42 75 74 |meAtom,S|econdBut|
|00000410| 74 6f 6e 4e 61 6d 65 41 | 74 6f 6d 2c 52 65 70 6c |tonNameA|tom,Repl|
|00000420| 79 41 74 6f 6d 2c 0d 50 | 72 6f 6d 70 74 31 53 74 |yAtom,.P|rompt1St|
|00000430| 72 69 6e 67 2c 52 65 74 | 75 72 6e 31 53 74 72 69 |ring,Ret|urn1Stri|
|00000440| 6e 67 2c 0d 50 72 6f 6d | 70 74 32 53 74 72 69 6e |ng,.Prom|pt2Strin|
|00000450| 67 2c 52 65 74 75 72 6e | 32 53 74 72 69 6e 67 2c |g,Return|2String,|
|00000460| 0d 50 72 6f 6d 70 74 33 | 53 74 72 69 6e 67 2c 52 |.Prompt3|String,R|
|00000470| 65 74 75 72 6e 33 53 74 | 72 69 6e 67 2c 0d 50 72 |eturn3St|ring,.Pr|
|00000480| 6f 6d 70 74 34 53 74 72 | 69 6e 67 2c 52 65 74 75 |ompt4Str|ing,Retu|
|00000490| 72 6e 34 53 74 72 69 6e | 67 2c 0d 50 72 6f 6d 70 |rn4Strin|g,.Promp|
|000004a0| 74 35 53 74 72 69 6e 67 | 2c 52 65 74 75 72 6e 35 |t5String|,Return5|
|000004b0| 53 74 72 69 6e 67 29 2e | 0d 0d 49 66 20 74 68 65 |String).|..If the|
|000004c0| 20 53 65 63 6f 6e 64 42 | 75 74 74 6f 6e 4e 61 6d | SecondB|uttonNam|
|000004d0| 65 41 74 6f 6d 20 69 73 | 20 27 27 2c 20 74 68 65 |eAtom is| '', the|
|000004e0| 6e 20 74 68 65 20 62 75 | 74 74 6f 6e 20 64 6f 65 |n the bu|tton doe|
|000004f0| 73 6e 27 74 20 61 70 70 | 65 61 72 2e 0d 54 68 65 |sn't app|ear..The|
|00000500| 20 4d 65 73 73 61 67 65 | 53 74 72 69 6e 67 20 61 | Message|String a|
|00000510| 6e 64 20 74 68 65 20 50 | 72 6f 6d 70 74 53 74 72 |nd the P|romptStr|
|00000520| 69 6e 67 73 20 61 6e 64 | 20 52 65 74 75 72 6e 53 |ings and| ReturnS|
|00000530| 74 72 69 6e 67 73 20 61 | 72 65 20 61 6c 6c 20 6c |trings a|re all l|
|00000540| 69 73 74 73 20 6f 66 20 | 69 6e 74 65 67 65 72 73 |ists of |integers|
|00000550| 2c 20 65 61 63 68 20 69 | 6e 74 65 67 65 72 20 62 |, each i|nteger b|
|00000560| 65 69 6e 67 20 74 68 65 | 20 41 53 43 49 49 20 6f |eing the| ASCII o|
|00000570| 66 20 74 68 65 20 63 68 | 61 72 61 63 74 65 72 20 |f the ch|aracter |
|00000580| 28 75 73 65 66 75 6c 20 | 66 6f 72 20 70 61 72 73 |(useful |for pars|
|00000590| 69 6e 67 20 77 69 74 68 | 20 44 43 47 73 29 2e 0d |ing with| DCGs)..|
|000005a0| 49 66 20 61 20 50 72 6f | 6d 70 74 53 74 72 69 6e |If a Pro|mptStrin|
|000005b0| 67 20 69 73 20 5b 5d 20 | 28 69 2e 65 2e 20 6e 6f |g is [] |(i.e. no|
|000005c0| 74 68 69 6e 67 29 20 74 | 68 65 6e 20 6e 65 69 74 |thing) t|hen neit|
|000005d0| 68 65 72 20 69 74 20 6e | 6f 72 20 69 74 73 20 63 |her it n|or its c|
|000005e0| 6f 72 72 65 73 70 6f 6e | 64 69 6e 67 20 65 64 69 |orrespon|ding edi|
|000005f0| 74 20 62 6f 78 20 77 69 | 6c 6c 20 61 70 70 65 61 |t box wi|ll appea|
|00000600| 72 20 6f 6e 20 74 68 65 | 20 64 69 61 6c 6f 67 2e |r on the| dialog.|
|00000610| 20 54 68 75 73 20 79 6f | 75 20 63 61 6e 20 63 6f | Thus yo|u can co|
|00000620| 6e 74 72 6f 6c 20 74 68 | 65 20 6e 75 6d 62 65 72 |ntrol th|e number|
|00000630| 20 6f 66 20 6d 75 6c 74 | 69 70 6c 65 20 61 6e 73 | of mult|iple ans|
|00000640| 77 65 72 73 20 61 76 61 | 69 6c 61 62 6c 65 2e 0d |wers ava|ilable..|
|00000650| 0d 48 65 72 65 20 69 73 | 20 61 6e 20 65 78 61 6d |.Here is| an exam|
|00000660| 70 6c 65 3a 0d 27 73 79 | 73 74 65 6d 24 6d 75 6c |ple:.'sy|stem$mul|
|00000670| 74 69 70 6c 65 24 63 68 | 6f 69 63 65 27 28 0d 20 |tiple$ch|oice'(. |
|00000680| 20 20 20 20 20 20 20 27 | 53 61 6d 70 6c 65 20 44 | '|Sample D|
|00000690| 69 61 6c 6f 67 c9 27 2c | 0d 20 20 20 20 20 20 20 |ialog.',|. |
|000006a0| 20 22 54 68 69 73 20 69 | 73 20 61 20 73 61 6d 70 | "This i|s a samp|
|000006b0| 6c 65 20 6d 65 73 73 61 | 67 65 22 2c 0d 20 20 20 |le messa|ge",. |
|000006c0| 20 20 20 20 20 27 4f 75 | 69 27 2c 0d 20 20 20 20 | 'Ou|i',. |
|000006d0| 20 20 20 20 27 4e 6f 6e | 27 2c 0d 20 20 20 20 20 | 'Non|',. |
|000006e0| 20 20 20 52 65 70 6c 79 | 41 74 6f 6d 2c 0d 20 20 | Reply|Atom,. |
|000006f0| 20 20 20 20 20 20 20 22 | 50 72 6f 6d 70 74 20 66 | "|Prompt f|
|00000700| 6f 72 20 61 20 73 74 72 | 69 6e 67 20 68 65 72 65 |or a str|ing here|
|00000710| 22 2c 52 65 74 75 72 6e | 31 53 74 72 69 6e 67 2c |",Return|1String,|
|00000720| 0d 20 20 20 20 20 20 20 | 20 20 22 22 2c 52 65 74 |. | "",Ret|
|00000730| 75 72 6e 32 53 74 72 69 | 6e 67 2c 09 25 69 6e 76 |urn2Stri|ng,.%inv|
|00000740| 69 73 69 62 6c 65 20 73 | 65 63 6f 6e 64 20 63 68 |isible s|econd ch|
|00000750| 6f 69 63 65 0d 20 20 20 | 20 20 20 20 20 20 22 c9 |oice. | ".|
|00000760| 61 6e 64 20 68 65 72 65 | 20 74 6f 6f c9 22 2c 52 |and here| too.",R|
|00000770| 65 74 75 72 6e 33 53 74 | 72 69 6e 67 2c 0d 20 20 |eturn3St|ring,. |
|00000780| 20 20 20 20 20 20 20 22 | 22 2c 52 65 74 75 72 6e | "|",Return|
|00000790| 34 53 74 72 69 6e 67 2c | 20 25 69 6e 76 69 73 69 |4String,| %invisi|
|000007a0| 62 6c 65 20 66 6f 75 72 | 74 68 20 63 68 6f 69 63 |ble four|th choic|
|000007b0| 65 0d 20 20 20 20 20 20 | 20 20 20 22 c9 66 69 6e |e. | ".fin|
|000007c0| 61 6c 6c 79 2c 20 68 65 | 72 65 2e 22 2c 52 65 74 |ally, he|re.",Ret|
|000007d0| 75 72 6e 35 53 74 72 69 | 6e 67 29 2e 0d 0d a5 20 |urn5Stri|ng).... |
|000007e0| 4d 65 6e 75 73 0d d7 20 | 41 64 64 69 6e 67 20 26 |Menus.. |Adding &|
|000007f0| 20 4d 61 6e 69 70 75 6c | 61 74 69 6e 67 20 4d 65 | Manipul|ating Me|
|00000800| 6e 75 73 0d 54 6f 20 61 | 64 64 20 61 20 6d 65 6e |nus.To a|dd a men|
|00000810| 75 2c 20 6f 72 20 74 6f | 20 63 68 61 6e 67 65 20 |u, or to| change |
|00000820| 61 6e 20 65 78 69 73 74 | 69 6e 67 20 6d 65 6e 75 |an exist|ing menu|
|00000830| 2c 20 75 73 65 20 74 68 | 65 20 66 6f 6c 6c 6f 77 |, use th|e follow|
|00000840| 69 6e 67 20 63 61 6c 6c | 3a 0d 0d 27 73 79 73 74 |ing call|:..'syst|
|00000850| 65 6d 24 6d 65 6e 75 27 | 28 73 65 74 2c 4d 65 6e |em$menu'|(set,Men|
|00000860| 75 4e 61 6d 65 2c 4d 65 | 6e 75 49 74 65 6d 4e 61 |uName,Me|nuItemNa|
|00000870| 6d 65 2c 4b 69 6e 64 2c | 45 6e 61 62 6c 65 2c 0d |me,Kind,|Enable,.|
|00000880| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000890| 20 20 20 20 20 20 20 20 | 49 63 6f 6e 2c 4b 65 79 | |Icon,Key|
|000008a0| 45 71 75 69 76 61 6c 65 | 6e 74 2c 4d 61 72 6b 43 |Equivale|nt,MarkC|
|000008b0| 68 61 72 2c 4d 65 6e 75 | 4e 75 6d 62 65 72 2c 49 |har,Menu|Number,I|
|000008c0| 74 65 6d 4e 75 6d 62 65 | 72 29 2e 0d 0d 25 61 20 |temNumbe|r)...%a |
|000008d0| 4d 65 6e 75 49 74 65 6d | 4e 61 6d 65 20 6f 66 20 |MenuItem|Name of |
|000008e0| 27 27 20 77 69 6c 6c 20 | 6e 6f 74 20 61 64 64 20 |'' will |not add |
|000008f0| 61 6e 79 74 68 69 6e 67 | 20 74 6f 20 74 68 65 20 |anything| to the |
|00000900| 6c 69 73 74 20 6f 66 20 | 74 68 65 20 6d 65 6e 75 |list of |the menu|
|00000910| 27 73 20 69 74 65 6d 73 | 2c 20 62 75 74 20 77 69 |'s items|, but wi|
|00000920| 6c 6c 20 61 64 64 20 74 | 68 65 20 6d 65 6e 75 20 |ll add t|he menu |
|00000930| 74 6f 20 74 68 65 20 6c | 69 73 74 20 6f 66 20 6d |to the l|ist of m|
|00000940| 65 6e 75 73 20 69 66 20 | 6e 65 63 65 73 73 61 72 |enus if |necessar|
|00000950| 79 2e 0d 25 61 6c 77 61 | 79 73 20 75 73 65 20 27 |y..%alwa|ys use '|
|00000960| 73 65 74 27 20 6f 72 20 | 27 64 65 6c 65 74 65 27 |set' or |'delete'|
|00000970| 20 66 6f 72 20 74 68 65 | 20 66 69 72 73 74 20 61 | for the| first a|
|00000980| 72 67 75 6d 65 6e 74 2e | 0d 25 65 6e 74 65 72 20 |rgument.|.%enter |
|00000990| 27 73 74 61 6e 64 61 72 | 64 27 20 6f 72 20 27 68 |'standar|d' or 'h|
|000009a0| 69 65 72 61 72 63 68 69 | 63 61 6c 27 20 66 6f 72 |ierarchi|cal' for|
|000009b0| 20 74 68 65 20 6b 69 6e | 64 20 66 69 65 6c 64 2e | the kin|d field.|
|000009c0| 0d 25 45 6e 74 65 72 20 | 27 65 6e 61 62 6c 65 64 |.%Enter |'enabled|
|000009d0| 27 20 20 6f 72 20 27 64 | 69 73 61 62 6c 65 64 27 |' or 'd|isabled'|
|000009e0| 20 6f 72 20 27 27 20 69 | 6e 20 74 68 65 20 45 6e | or '' i|n the En|
|000009f0| 61 62 6c 65 20 66 69 65 | 6c 64 2e 0d 25 45 6e 74 |able fie|ld..%Ent|
|00000a00| 65 72 20 49 63 6f 6e 20 | 4e 75 6d 62 65 72 20 6f |er Icon |Number o|
|00000a10| 72 20 30 20 69 6e 20 49 | 63 6f 6e 20 46 69 65 6c |r 0 in I|con Fiel|
|00000a20| 64 0d 25 45 6e 74 65 72 | 20 63 68 61 72 61 63 74 |d.%Enter| charact|
|00000a30| 65 72 20 63 6f 64 65 20 | 66 6f 72 20 4b 65 79 62 |er code |for Keyb|
|00000a40| 6f 61 72 64 20 45 71 75 | 69 76 61 6c 65 6e 74 20 |oard Equ|ivalent |
|00000a50| 69 6e 20 4b 65 79 45 71 | 75 69 76 61 6c 65 6e 74 |in KeyEq|uivalent|
|00000a60| 20 46 69 65 6c 64 20 28 | 6f 6e 6c 79 20 77 6f 72 | Field (|only wor|
|00000a70| 6b 73 20 66 6f 72 20 61 | 20 6e 65 77 20 6d 65 6e |ks for a| new men|
|00000a80| 75 29 2e 0d 25 45 6e 74 | 65 72 20 63 68 61 72 61 |u)..%Ent|er chara|
|00000a90| 63 74 65 72 20 63 6f 64 | 65 20 66 6f 72 20 4d 61 |cter cod|e for Ma|
|00000aa0| 72 6b 69 6e 67 20 43 68 | 61 72 61 63 74 65 72 20 |rking Ch|aracter |
|00000ab0| 69 6e 20 4d 61 72 6b 43 | 68 61 72 20 46 69 65 6c |in MarkC|har Fiel|
|00000ac0| 64 2e 0d 25 4d 65 6e 75 | 20 4e 75 6d 62 65 72 20 |d..%Menu| Number |
|00000ad0| 26 20 49 74 65 6d 20 4e | 75 6d 62 65 72 20 61 72 |& Item N|umber ar|
|00000ae0| 65 20 72 65 74 75 72 6e | 65 64 2e 0d 0d 27 73 79 |e return|ed...'sy|
|00000af0| 73 74 65 6d 24 6d 65 6e | 75 27 20 63 61 6e 20 62 |stem$men|u' can b|
|00000b00| 65 20 75 73 65 64 20 74 | 6f 20 65 6e 61 62 6c 65 |e used t|o enable|
|00000b10| 20 26 20 64 69 73 61 62 | 6c 65 20 65 78 69 73 74 | & disab|le exist|
|00000b20| 69 6e 67 20 6d 65 6e 75 | 20 69 74 65 6d 73 2e 0d |ing menu| items..|
|00000b30| 54 68 65 20 73 79 73 74 | 65 6d 20 61 64 64 73 20 |The syst|em adds |
|00000b40| 32 35 36 20 74 6f 20 74 | 68 65 20 69 63 6f 6e 20 |256 to t|he icon |
|00000b50| 6e 75 6d 62 65 72 20 79 | 6f 75 20 70 72 6f 76 69 |number y|ou provi|
|00000b60| 64 65 2c 20 69 66 20 69 | 74 27 73 20 6e 6f 74 20 |de, if i|t's not |
|00000b70| 30 2e 0d 28 53 75 70 70 | 6c 79 20 79 6f 75 72 20 |0..(Supp|ly your |
|00000b80| 6f 77 6e 20 69 63 6f 6e | 73 20 75 73 69 6e 67 20 |own icon|s using |
|00000b90| 73 6f 6d 65 74 68 69 6e | 67 20 6c 69 6b 65 20 52 |somethin|g like R|
|00000ba0| 65 73 45 64 69 74 2e 29 | 0d 65 78 61 6d 70 6c 65 |esEdit.)|.example|
|00000bb0| 3a 0d 0d 4a 20 69 73 20 | 22 12 22 2c 4b 20 69 73 |:..J is |".",K is|
|00000bc0| 20 22 59 22 2c 27 73 79 | 73 74 65 6d 24 6d 65 6e | "Y",'sy|stem$men|
|00000bd0| 75 27 28 73 65 74 2c 27 | 54 72 69 78 69 27 2c 27 |u'(set,'|Trixi','|
|00000be0| 46 69 72 73 74 20 4d 65 | 6e 75 20 32 27 2c 73 74 |First Me|nu 2',st|
|00000bf0| 61 6e 64 61 72 64 2c 65 | 6e 61 62 6c 65 64 2c 31 |andard,e|nabled,1|
|00000c00| 2c 4b 2c 4a 2c 4d 65 6e | 75 2c 49 74 65 6d 29 2e |,K,J,Men|u,Item).|
|00000c10| 0d 0d 53 55 47 47 45 53 | 54 49 4f 4e 20 2d 20 73 |..SUGGES|TION - s|
|00000c20| 65 74 20 74 68 65 20 66 | 6f 6e 74 20 66 6f 72 20 |et the f|ont for |
|00000c30| 74 68 69 73 20 77 69 6e | 64 6f 77 20 74 6f 20 43 |this win|dow to C|
|00000c40| 68 69 63 61 67 6f 20 28 | 74 68 65 20 73 74 61 6e |hicago (|the stan|
|00000c50| 64 61 72 64 20 6d 65 6e | 75 20 62 61 72 20 66 6f |dard men|u bar fo|
|00000c60| 6e 74 29 2c 20 61 6e 64 | 20 65 78 70 65 72 69 6d |nt), and| experim|
|00000c70| 65 6e 74 20 77 69 74 68 | 20 64 69 66 66 65 72 65 |ent with| differe|
|00000c80| 6e 74 20 76 61 6c 75 65 | 73 20 66 6f 72 20 4a 20 |nt value|s for J |
|00000c90| 61 62 6f 76 65 20 28 6c | 6f 6f 6b 20 69 6e 20 4b |above (l|ook in K|
|00000ca0| 65 79 43 61 70 73 20 66 | 6f 72 20 72 65 66 65 72 |eyCaps f|or refer|
|00000cb0| 65 6e 63 65 20 2d 20 65 | 2e 67 2e 20 63 6f 6e 74 |ence - e|.g. cont|
|00000cc0| 72 6f 6c 2d 52 20 67 69 | 76 65 73 20 74 68 65 20 |rol-R gi|ves the |
|00000cd0| 74 69 63 6b 20 6d 61 72 | 6b 20 12 29 2e 0d 57 68 |tick mar|k .)..Wh|
|00000ce0| 65 6e 20 74 68 65 20 6d | 65 6e 75 20 69 73 20 73 |en the m|enu is s|
|00000cf0| 65 6c 65 63 74 65 64 20 | 62 79 20 74 68 65 20 75 |elected |by the u|
|00000d00| 73 65 72 2c 20 4f 70 65 | 6e 20 50 72 6f 6c 6f 67 |ser, Ope|n Prolog|
|00000d10| 20 6c 6f 6f 6b 73 20 66 | 6f 72 20 61 20 63 6c 61 | looks f|or a cla|
|00000d20| 75 73 65 0d 77 69 74 68 | 20 61 20 68 65 61 64 20 |use.with| a head |
|00000d30| 6f 66 20 74 68 65 20 66 | 6f 72 6d 3a 0d 27 73 79 |of the f|orm:.'sy|
|00000d40| 73 74 65 6d 24 6d 65 6e | 75 24 68 6f 6f 6b 27 28 |stem$men|u$hook'(|
|00000d50| 4d 65 6e 75 4e 61 6d 65 | 2c 4d 65 6e 75 49 74 65 |MenuName|,MenuIte|
|00000d60| 6d 4e 61 6d 65 29 0d 49 | 66 20 69 74 20 69 73 20 |mName).I|f it is |
|00000d70| 66 6f 75 6e 64 2c 20 74 | 68 65 20 63 6c 61 75 73 |found, t|he claus|
|00000d80| 65 20 69 73 20 65 78 65 | 63 75 74 65 64 2e 0d 0d |e is exe|cuted...|
|00000d90| a1 20 48 69 65 72 61 72 | 63 68 69 63 61 6c 20 4d |. Hierar|chical M|
|00000da0| 65 6e 75 73 0d 54 68 65 | 20 43 6f 6d 6d 61 6e 64 |enus.The| Command|
|00000db0| 20 4b 65 79 20 66 69 65 | 6c 64 20 61 6e 64 20 74 | Key fie|ld and t|
|00000dc0| 68 65 20 4d 61 72 6b 20 | 43 68 61 72 20 66 69 65 |he Mark |Char fie|
|00000dd0| 6c 64 20 61 72 65 20 72 | 65 2d 75 73 65 64 20 74 |ld are r|e-used t|
|00000de0| 6f 20 69 6d 70 6c 65 6d | 65 6e 74 20 68 69 65 72 |o implem|ent hier|
|00000df0| 61 72 63 68 69 63 61 6c | 20 6d 65 6e 75 73 2e 20 |archical| menus. |
|00000e00| 54 6f 20 68 6f 6f 6b 20 | 75 70 20 68 69 65 72 61 |To hook |up hiera|
|00000e10| 72 63 68 69 63 61 6c 20 | 6d 65 6e 75 73 2c 20 74 |rchical |menus, t|
|00000e20| 68 65 20 4d 61 72 6b 63 | 68 61 72 20 6e 75 6d 62 |he Markc|har numb|
|00000e30| 65 72 20 6f 66 20 74 68 | 65 20 6d 65 6e 75 20 69 |er of th|e menu i|
|00000e40| 74 65 6d 20 74 68 61 74 | 20 70 6f 69 6e 74 73 20 |tem that| points |
|00000e50| 74 6f 20 74 68 65 20 68 | 69 65 72 61 72 63 68 69 |to the h|ierarchi|
|00000e60| 63 61 6c 20 6d 65 6e 75 | 73 20 6d 75 73 74 20 62 |cal menu|s must b|
|00000e70| 65 20 74 68 65 20 73 61 | 6d 65 20 61 73 20 74 68 |e the sa|me as th|
|00000e80| 65 20 68 69 65 72 61 72 | 63 68 69 63 61 6c 20 6d |e hierar|chical m|
|00000e90| 65 6e 75 27 73 20 4d 65 | 6e 75 6e 75 6d 62 65 72 |enu's Me|nunumber|
|00000ea0| 2e 20 53 6f 2c 20 79 6f | 75 20 63 61 6e 20 64 65 |. So, yo|u can de|
|00000eb0| 66 69 6e 65 20 74 68 65 | 20 68 69 65 72 61 72 63 |fine the| hierarc|
|00000ec0| 68 69 63 61 6c 20 6d 65 | 6e 75 20 69 74 65 6d 73 |hical me|nu items|
|00000ed0| 20 66 69 72 73 74 2c 20 | 67 65 74 74 69 6e 67 20 | first, |getting |
|00000ee0| 62 61 63 6b 20 74 68 65 | 20 6d 65 6e 75 27 73 20 |back the| menu's |
|00000ef0| 6d 65 6e 75 6e 75 6d 62 | 65 72 3b 20 74 68 65 6e |menunumb|er; then|
|00000f00| 20 64 65 66 69 6e 65 20 | 74 68 65 20 6d 65 6e 75 | define |the menu|
|00000f10| 20 69 74 65 6d 20 74 68 | 61 74 20 70 6f 69 6e 74 | item th|at point|
|00000f20| 73 20 74 6f 20 69 74 20 | 61 73 20 61 20 68 69 65 |s to it |as a hie|
|00000f30| 72 61 72 63 68 69 63 61 | 6c 20 6d 65 6e 75 20 70 |rarchica|l menu p|
|00000f40| 6f 69 6e 74 65 72 20 28 | 62 79 20 6d 61 6b 69 6e |ointer (|by makin|
|00000f50| 67 20 69 74 73 20 63 6f | 6d 6d 61 6e 64 20 63 68 |g its co|mmand ch|
|00000f60| 61 72 61 63 74 65 72 20 | 6e 75 6d 62 65 72 20 32 |aracter |number 2|
|00000f70| 37 29 2c 20 61 6e 64 20 | 27 68 6f 6f 6b 20 69 74 |7), and |'hook it|
|00000f80| 20 75 70 27 20 74 6f 20 | 74 68 65 20 70 72 65 76 | up' to |the prev|
|00000f90| 69 6f 75 73 6c 79 20 64 | 65 66 69 6e 65 64 20 68 |iously d|efined h|
|00000fa0| 69 65 72 61 72 63 68 69 | 63 61 6c 20 6d 65 6e 75 |ierarchi|cal menu|
|00000fb0| 20 62 79 20 64 65 66 69 | 6e 69 6e 67 20 69 74 73 | by defi|ning its|
|00000fc0| 20 6d 61 72 6b 63 68 61 | 72 20 6e 75 6d 62 65 72 | markcha|r number|
|00000fd0| 20 74 6f 20 62 65 20 74 | 68 65 20 73 61 6d 65 20 | to be t|he same |
|00000fe0| 61 73 20 74 68 65 20 68 | 69 65 72 61 72 63 68 69 |as the h|ierarchi|
|00000ff0| 63 61 6c 20 6d 65 6e 75 | 27 73 20 6e 75 6d 62 65 |cal menu|'s numbe|
|00001000| 72 2e 20 43 6f 6d 70 6c | 69 63 61 74 65 64 20 68 |r. Compl|icated h|
|00001010| 75 68 3f 0d 0d 4e 6f 74 | 69 63 65 20 74 68 61 74 |uh?..Not|ice that|
|00001020| 20 77 68 65 6e 20 61 20 | 68 69 65 72 61 72 63 68 | when a |hierarch|
|00001030| 69 63 61 6c 20 6d 65 6e | 75 20 69 74 65 6d 20 69 |ical men|u item i|
|00001040| 73 20 73 65 6c 65 63 74 | 65 64 2c 20 69 74 20 69 |s select|ed, it i|
|00001050| 73 20 74 68 65 20 2a 6d | 65 6e 75 27 73 2a 20 6e |s the *m|enu's* n|
|00001060| 61 6d 65 20 61 6e 64 20 | 74 68 65 20 6d 65 6e 75 |ame and |the menu|
|00001070| 20 69 74 65 6d 20 6e 61 | 6d 65 20 74 68 61 74 20 | item na|me that |
|00001080| 61 72 65 20 72 65 74 75 | 72 6e 65 64 20 2d 20 73 |are retu|rned - s|
|00001090| 65 65 20 74 68 65 20 65 | 78 61 6d 70 6c 65 20 62 |ee the e|xample b|
|000010a0| 65 6c 6f 77 2e 0d 0d 48 | 65 72 65 27 73 20 61 6e |elow...H|ere's an|
|000010b0| 20 65 78 61 6d 70 6c 65 | 20 74 68 61 74 20 61 6c | example| that al|
|000010c0| 73 6f 20 64 65 6d 6f 6e | 73 74 72 61 74 65 73 20 |so demon|strates |
|000010d0| 74 68 65 20 27 73 79 73 | 74 65 6d 24 6d 65 6e 75 |the 'sys|tem$menu|
|000010e0| 24 68 6f 6f 6b 27 2e 20 | 53 65 6c 65 63 74 20 69 |$hook'. |Select i|
|000010f0| 74 20 61 6c 6c 20 61 6e | 64 20 70 72 65 73 73 20 |t all an|d press |
|00001100| 74 68 65 20 45 4e 54 45 | 52 20 6b 65 79 3a 0d 0d |the ENTE|R key:..|
|00001110| 27 73 79 73 74 65 6d 24 | 6f 77 6e 65 72 24 6e 61 |'system$|owner$na|
|00001120| 6d 65 27 28 59 29 2c 28 | 59 3d 27 27 2c 59 6f 75 |me'(Y),(|Y='',You|
|00001130| 3d 27 4f 68 20 57 69 73 | 65 20 55 73 65 72 27 3b |='Oh Wis|e User';|
|00001140| 59 3d 59 6f 75 29 2c 0d | 27 73 79 73 74 65 6d 24 |Y=You),.|'system$|
|00001150| 6d 65 6e 75 27 28 73 65 | 74 2c 27 47 72 65 65 74 |menu'(se|t,'Greet|
|00001160| 69 6e 67 27 2c 59 6f 75 | 2c 68 69 65 72 61 72 63 |ing',You|,hierarc|
|00001170| 68 69 63 61 6c 2c 65 6e | 61 62 6c 65 64 2c 30 2c |hical,en|abled,0,|
|00001180| 30 2c 30 2c 4d 65 6e 75 | 4e 75 6d 62 65 72 2c 5f |0,0,Menu|Number,_|
|00001190| 29 2c 0d 27 73 79 73 74 | 65 6d 24 6d 65 6e 75 27 |),.'syst|em$menu'|
|000011a0| 28 73 65 74 2c 27 47 72 | 65 65 74 69 6e 67 27 2c |(set,'Gr|eeting',|
|000011b0| 27 2d 27 2c 68 69 65 72 | 61 72 63 68 69 63 61 6c |'-',hier|archical|
|000011c0| 2c 64 69 73 61 62 6c 65 | 64 2c 30 2c 30 2c 30 2c |,disable|d,0,0,0,|
|000011d0| 4d 65 6e 75 4e 75 6d 62 | 65 72 2c 5f 29 2c 0d 27 |MenuNumb|er,_),.'|
|000011e0| 73 79 73 74 65 6d 24 6d | 65 6e 75 27 28 73 65 74 |system$m|enu'(set|
|000011f0| 2c 27 47 72 65 65 74 69 | 6e 67 27 2c 27 4d 69 6b |,'Greeti|ng','Mik|
|00001200| 65 27 2c 68 69 65 72 61 | 72 63 68 69 63 61 6c 2c |e',hiera|rchical,|
|00001210| 65 6e 61 62 6c 65 64 2c | 30 2c 30 2c 30 2c 4d 65 |enabled,|0,0,0,Me|
|00001220| 6e 75 4e 75 6d 62 65 72 | 2c 5f 29 2c 0d 27 73 79 |nuNumber|,_),.'sy|
|00001230| 73 74 65 6d 24 6d 65 6e | 75 27 28 73 65 74 2c 27 |stem$men|u'(set,'|
|00001240| 47 72 65 65 74 69 6e 67 | 27 2c 27 4e 97 69 72 92 |Greeting|','N.ir.|
|00001250| 6e 27 2c 68 69 65 72 61 | 72 63 68 69 63 61 6c 2c |n',hiera|rchical,|
|00001260| 65 6e 61 62 6c 65 64 2c | 30 2c 30 2c 30 2c 4d 65 |enabled,|0,0,0,Me|
|00001270| 6e 75 4e 75 6d 62 65 72 | 2c 5f 29 2c 0d 27 73 79 |nuNumber|,_),.'sy|
|00001280| 73 74 65 6d 24 6d 65 6e | 75 27 28 73 65 74 2c 27 |stem$men|u'(set,'|
|00001290| 47 72 65 65 74 69 6e 67 | 27 2c 27 2d 27 2c 68 69 |Greeting|','-',hi|
|000012a0| 65 72 61 72 63 68 69 63 | 61 6c 2c 64 69 73 61 62 |erarchic|al,disab|
|000012b0| 6c 65 64 2c 30 2c 30 2c | 30 2c 4d 65 6e 75 4e 75 |led,0,0,|0,MenuNu|
|000012c0| 6d 62 65 72 2c 5f 29 2c | 0d 27 73 79 73 74 65 6d |mber,_),|.'system|
|000012d0| 24 6d 65 6e 75 27 28 73 | 65 74 2c 27 47 72 65 65 |$menu'(s|et,'Gree|
|000012e0| 74 69 6e 67 27 2c 27 43 | 6c 61 72 65 27 2c 68 69 |ting','C|lare',hi|
|000012f0| 65 72 61 72 63 68 69 63 | 61 6c 2c 65 6e 61 62 6c |erarchic|al,enabl|
|00001300| 65 64 2c 30 2c 30 2c 30 | 2c 4d 65 6e 75 4e 75 6d |ed,0,0,0|,MenuNum|
|00001310| 62 65 72 2c 5f 29 2c 0d | 27 73 79 73 74 65 6d 24 |ber,_),.|'system$|
|00001320| 6d 65 6e 75 27 28 73 65 | 74 2c 27 47 72 65 65 74 |menu'(se|t,'Greet|
|00001330| 69 6e 67 27 2c 27 4b 61 | 74 69 65 27 2c 68 69 65 |ing','Ka|tie',hie|
|00001340| 72 61 72 63 68 69 63 61 | 6c 2c 65 6e 61 62 6c 65 |rarchica|l,enable|
|00001350| 64 2c 30 2c 30 2c 30 2c | 4d 65 6e 75 4e 75 6d 62 |d,0,0,0,|MenuNumb|
|00001360| 65 72 2c 5f 29 2c 0d 27 | 73 79 73 74 65 6d 24 6d |er,_),.'|system$m|
|00001370| 65 6e 75 27 28 73 65 74 | 2c 27 47 72 65 65 74 69 |enu'(set|,'Greeti|
|00001380| 6e 67 27 2c 27 41 6c 69 | 73 6f 6e 27 2c 68 69 65 |ng','Ali|son',hie|
|00001390| 72 61 72 63 68 69 63 61 | 6c 2c 65 6e 61 62 6c 65 |rarchica|l,enable|
|000013a0| 64 2c 30 2c 30 2c 30 2c | 4d 65 6e 75 4e 75 6d 62 |d,0,0,0,|MenuNumb|
|000013b0| 65 72 2c 5f 29 2c 0d 27 | 73 79 73 74 65 6d 24 6d |er,_),.'|system$m|
|000013c0| 65 6e 75 27 28 73 65 74 | 2c 27 53 61 6d 70 6c 65 |enu'(set|,'Sample|
|000013d0| 31 27 2c 27 45 78 61 6d | 70 6c 65 27 2c 73 74 61 |1','Exam|ple',sta|
|000013e0| 6e 64 61 72 64 2c 65 6e | 61 62 6c 65 64 2c 30 2c |ndard,en|abled,0,|
|000013f0| 32 37 2c 4d 65 6e 75 4e | 75 6d 62 65 72 2c 4d 65 |27,MenuN|umber,Me|
|00001400| 6e 75 2c 49 74 65 6d 29 | 2c 0d 61 73 73 65 72 74 |nu,Item)|,.assert|
|00001410| 28 28 27 73 79 73 74 65 | 6d 24 6d 65 6e 75 24 68 |(('syste|m$menu$h|
|00001420| 6f 6f 6b 27 28 27 47 72 | 65 65 74 69 6e 67 27 2c |ook'('Gr|eeting',|
|00001430| 58 29 20 3a 2d 20 77 72 | 69 74 65 28 27 48 69 20 |X) :- wr|ite('Hi |
|00001440| 27 29 2c 77 72 69 74 65 | 28 58 29 2c 6e 6c 29 29 |'),write|(X),nl))|
|00001450| 2e 0d 0d d7 20 44 65 6c | 65 74 69 6e 67 20 4d 65 |.... Del|eting Me|
|00001460| 6e 75 20 49 74 65 6d 73 | 20 26 20 4d 65 6e 75 73 |nu Items| & Menus|
|00001470| 0d 27 73 79 73 74 65 6d | 24 6d 65 6e 75 27 28 64 |.'system|$menu'(d|
|00001480| 65 6c 65 74 65 2c 4d 65 | 6e 75 2c 4d 65 6e 75 49 |elete,Me|nu,MenuI|
|00001490| 74 65 6d 2c 5f 2c 5f 2c | 5f 2c 5f 2c 5f 2c 5f 2c |tem,_,_,|_,_,_,_,|
|000014a0| 5f 29 2e 0d 0d 49 66 20 | 74 68 65 20 4d 65 6e 75 |_)...If |the Menu|
|000014b0| 49 74 65 6d 20 69 73 20 | 27 27 2c 20 74 68 65 20 |Item is |'', the |
|000014c0| 77 68 6f 6c 65 20 6d 65 | 6e 75 20 69 73 20 64 65 |whole me|nu is de|
|000014d0| 6c 65 74 65 64 2e 20 42 | 65 20 63 61 72 65 66 75 |leted. B|e carefu|
|000014e0| 6c 20 61 62 6f 75 74 20 | 64 65 6c 65 74 69 6e 67 |l about |deleting|
|000014f0| 20 74 68 65 20 73 74 61 | 6e 64 61 72 64 20 6d 65 | the sta|ndard me|
|00001500| 6e 75 73 20 2d 20 74 68 | 65 79 20 61 72 65 20 6c |nus - th|ey are l|
|00001510| 69 6e 6b 65 64 20 74 6f | 20 4f 70 65 6e 20 50 72 |inked to| Open Pr|
|00001520| 6f 6c 6f 67 20 62 79 20 | 70 6f 73 69 74 69 6f 6e |olog by |position|
|00001530| 2c 20 6e 6f 74 20 62 79 | 20 74 65 78 74 20 6f 72 |, not by| text or|
|00001540| 20 61 70 70 65 61 72 61 | 6e 63 65 2e 0d 0d 46 6f | appeara|nce...Fo|
|00001550| 72 20 73 6f 6d 65 20 73 | 70 65 63 69 61 6c 20 70 |r some s|pecial p|
|00001560| 75 72 70 6f 73 65 73 2c | 20 79 6f 75 20 6d 61 79 |urposes,| you may|
|00001570| 20 77 69 73 68 20 74 6f | 20 64 65 6c 65 74 65 20 | wish to| delete |
|00001580| 74 68 65 20 50 72 6f 6c | 6f 67 20 6d 65 6e 75 3b |the Prol|og menu;|
|00001590| 20 74 68 61 74 27 73 20 | 66 69 6e 65 2c 20 62 75 | that's |fine, bu|
|000015a0| 74 20 79 6f 75 27 64 20 | 61 6c 73 6f 20 62 65 20 |t you'd |also be |
|000015b0| 64 65 6c 65 74 69 6e 67 | 20 74 68 65 20 63 6f 6d |deleting| the com|
|000015c0| 6d 61 6e 64 2d 28 2e 29 | 20 6d 65 6e 75 20 69 74 |mand-(.)| menu it|
|000015d0| 65 6d 20 77 68 69 63 68 | 20 69 73 20 75 73 65 64 |em which| is used|
|000015e0| 20 66 6f 72 20 73 74 6f | 70 70 69 6e 67 20 77 61 | for sto|pping wa|
|000015f0| 79 77 61 72 64 20 70 72 | 6f 67 72 61 6d 20 65 78 |yward pr|ogram ex|
|00001600| 65 63 75 74 69 6f 6e 2e | 20 59 6f 75 20 63 61 6e |ecution.| You can|
|00001610| 20 72 65 64 65 66 69 6e | 65 20 74 68 65 20 63 6f | redefin|e the co|
|00001620| 6d 6d 61 6e 64 2d 28 2e | 29 20 6d 65 6e 75 20 69 |mmand-(.|) menu i|
|00001630| 74 65 6d 20 74 6f 20 73 | 75 69 74 20 79 6f 75 72 |tem to s|uit your|
|00001640| 20 6f 77 6e 20 70 75 72 | 70 6f 73 65 73 2c 20 61 | own pur|poses, a|
|00001650| 73 20 6c 6f 6e 67 20 61 | 73 20 79 6f 75 20 6d 61 |s long a|s you ma|
|00001660| 6b 65 20 73 75 72 65 20 | 69 74 73 20 63 6f 6d 6d |ke sure |its comm|
|00001670| 61 6e 64 20 6b 65 79 20 | 65 71 75 69 76 61 6c 65 |and key |equivale|
|00001680| 6e 74 20 69 73 20 74 68 | 65 20 64 6f 74 2e 0d 0d |nt is th|e dot...|
|00001690| a5 20 53 74 61 74 75 73 | 20 42 61 72 0d 54 68 65 |. Status| Bar.The|
|000016a0| 20 73 74 61 74 75 73 20 | 62 61 72 20 69 73 20 61 | status |bar is a|
|000016b0| 76 61 69 6c 61 62 6c 65 | 20 74 6f 20 79 6f 75 72 |vailable| to your|
|000016c0| 20 70 72 6f 67 72 61 6d | 20 61 73 20 61 20 63 6f | program| as a co|
|000016d0| 6e 76 65 6e 69 65 6e 74 | 20 64 69 73 70 6c 61 79 |nvenient| display|
|000016e0| 20 66 6f 72 20 74 68 65 | 20 73 74 61 74 65 20 6f | for the| state o|
|000016f0| 66 20 79 6f 75 72 20 70 | 72 6f 67 72 61 6d 2e 20 |f your p|rogram. |
|00001700| 55 73 65 72 73 20 61 72 | 65 20 68 61 70 70 69 65 |Users ar|e happie|
|00001710| 72 20 77 68 65 6e 20 74 | 68 65 79 20 6b 6e 6f 77 |r when t|hey know|
|00001720| 20 73 6f 6d 65 74 68 69 | 6e 67 20 69 73 20 68 61 | somethi|ng is ha|
|00001730| 70 70 65 6e 69 6e 67 2e | 20 54 68 65 20 72 6f 74 |ppening.| The rot|
|00001740| 61 74 69 6e 67 20 63 75 | 72 73 6f 72 20 69 6e 64 |ating cu|rsor ind|
|00001750| 69 63 61 74 65 73 20 74 | 68 61 74 20 4f 70 65 6e |icates t|hat Open|
|00001760| 20 50 72 6f 6c 6f 67 20 | 69 73 20 72 75 6e 6e 69 | Prolog |is runni|
|00001770| 6e 67 2c 20 61 6e 64 20 | 79 6f 75 20 63 61 6e 20 |ng, and |you can |
|00001780| 67 65 74 20 79 6f 75 72 | 20 70 72 6f 67 72 61 6d |get your| program|
|00001790| 20 74 6f 20 64 69 73 70 | 6c 61 79 20 6f 6e 67 6f | to disp|lay ongo|
|000017a0| 69 6e 67 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 20 |ing info|rmation |
|000017b0| 6f 6e 20 74 68 65 20 73 | 74 61 74 75 73 20 62 61 |on the s|tatus ba|
|000017c0| 72 2e 0d 54 68 65 72 65 | 20 61 72 65 20 74 68 72 |r..There| are thr|
|000017d0| 65 65 20 72 65 73 6f 75 | 72 63 65 73 20 61 76 61 |ee resou|rces ava|
|000017e0| 69 6c 61 62 6c 65 20 74 | 6f 20 79 6f 75 72 20 70 |ilable t|o your p|
|000017f0| 72 6f 67 72 61 6d 3a 0d | 28 31 29 20 54 68 65 20 |rogram:.|(1) The |
|00001800| 73 74 61 74 75 73 20 62 | 6f 78 20 61 74 20 74 68 |status b|ox at th|
|00001810| 65 20 65 78 74 72 65 6d | 65 20 6c 65 66 74 20 2d |e extrem|e left -|
|00001820| 20 6e 6f 72 6d 61 6c 6c | 79 20 69 74 20 63 6f 6e | normall|y it con|
|00001830| 74 61 69 6e 73 20 74 68 | 65 20 70 72 6f 6d 70 74 |tains th|e prompt|
|00001840| 20 3f 2d 20 62 75 74 20 | 69 74 20 6d 61 79 20 63 | ?- but |it may c|
|00001850| 6f 6e 74 61 69 6e 20 27 | 52 75 6e 6e 69 6e 67 c9 |ontain '|Running.|
|00001860| 27 20 27 52 65 73 75 6c | 74 73 c9 27 20 27 6d 6d |' 'Resul|ts.' 'mm|
|00001870| 27 20 6f 72 20 27 67 63 | 27 20 69 6e 64 69 63 61 |' or 'gc|' indica|
|00001880| 74 69 6e 67 20 64 69 66 | 66 65 72 65 6e 74 20 61 |ting dif|ferent a|
|00001890| 63 74 69 76 69 74 69 65 | 73 20 28 6d 6d 20 6d 65 |ctivitie|s (mm me|
|000018a0| 61 6e 73 20 6d 65 6d 6f | 72 79 20 6d 61 6e 61 67 |ans memo|ry manag|
|000018b0| 65 6d 65 6e 74 2c 20 67 | 63 20 6d 65 61 6e 73 20 |ement, g|c means |
|000018c0| 67 61 72 62 61 67 65 20 | 63 6f 6c 6c 65 63 74 69 |garbage |collecti|
|000018d0| 6f 6e 29 2e 20 54 68 65 | 20 64 65 62 75 67 67 65 |on). The| debugge|
|000018e0| 72 20 75 73 65 73 20 69 | 74 20 61 73 20 77 65 6c |r uses i|t as wel|
|000018f0| 6c 2e 20 59 6f 75 20 63 | 61 6e 20 75 73 65 20 69 |l. You c|an use i|
|00001900| 74 20 79 6f 75 72 73 65 | 6c 66 20 77 69 74 68 6f |t yourse|lf witho|
|00001910| 75 74 20 69 6e 74 65 72 | 66 65 72 69 6e 67 20 77 |ut inter|fering w|
|00001920| 69 74 68 20 74 68 65 73 | 65 20 6f 74 68 65 72 20 |ith thes|e other |
|00001930| 75 73 65 73 20 6f 66 20 | 69 74 2e 0d 28 32 29 20 |uses of |it..(2) |
|00001940| 54 68 65 20 6d 65 73 73 | 61 67 65 20 62 6f 78 2c |The mess|age box,|
|00001950| 20 66 72 6f 6d 20 74 68 | 65 20 72 69 67 68 74 20 | from th|e right |
|00001960| 68 61 6e 64 20 73 69 64 | 65 20 6f 66 20 74 68 65 |hand sid|e of the|
|00001970| 20 77 69 6e 64 6f 77 20 | 6c 65 66 74 77 61 72 64 | window |leftward|
|00001980| 73 2e 20 54 68 69 73 20 | 6d 61 79 20 63 6f 6e 74 |s. This |may cont|
|00001990| 61 69 6e 20 61 20 6c 61 | 72 67 65 72 20 73 74 72 |ain a la|rger str|
|000019a0| 69 6e 67 20 6f 66 20 74 | 65 78 74 20 74 68 61 6e |ing of t|ext than|
|000019b0| 20 74 68 65 20 73 74 61 | 74 75 73 20 62 6f 78 2e | the sta|tus box.|
|000019c0| 0d 28 33 29 20 54 68 65 | 20 70 72 6f 67 72 65 73 |.(3) The| progres|
|000019d0| 73 20 69 6e 64 69 63 61 | 74 6f 72 2e 20 54 68 69 |s indica|tor. Thi|
|000019e0| 73 20 69 73 20 61 20 27 | 74 68 65 72 6d 6f 6d 65 |s is a '|thermome|
|000019f0| 74 65 72 27 20 2d 20 61 | 20 72 65 63 74 61 6e 67 |ter' - a| rectang|
|00001a00| 6c 65 20 69 6e 20 77 68 | 69 63 68 20 79 6f 75 20 |le in wh|ich you |
|00001a10| 63 61 6e 20 73 65 74 20 | 74 68 65 20 66 72 61 63 |can set |the frac|
|00001a20| 74 69 6f 6e 20 6f 66 20 | 69 74 20 73 68 6f 77 69 |tion of |it showi|
|00001a30| 6e 67 20 67 72 61 79 2e | 20 46 6f 72 20 65 78 61 |ng gray.| For exa|
|00001a40| 6d 70 6c 65 2c 20 79 6f | 75 20 73 65 65 20 74 68 |mple, yo|u see th|
|00001a50| 69 73 20 61 20 66 69 6c | 65 20 69 73 20 62 65 69 |is a fil|e is bei|
|00001a60| 6e 67 20 63 6f 6e 73 75 | 6c 74 65 64 20 6f 72 20 |ng consu|lted or |
|00001a70| 72 65 63 6f 6e 73 75 6c | 74 65 64 2e 0d 0d 59 6f |reconsul|ted...Yo|
|00001a80| 75 20 63 61 6e 20 70 75 | 73 68 2c 20 73 65 74 20 |u can pu|sh, set |
|00001a90| 28 69 2e 65 2e 20 63 68 | 61 6e 67 65 29 20 6f 72 |(i.e. ch|ange) or|
|00001aa0| 20 70 75 6c 6c 20 6d 65 | 73 73 61 67 65 73 20 74 | pull me|ssages t|
|00001ab0| 6f 20 6f 72 20 66 72 6f | 6d 20 74 68 65 20 73 74 |o or fro|m the st|
|00001ac0| 61 74 75 73 20 61 6e 64 | 20 6d 65 73 73 61 67 65 |atus and| message|
|00001ad0| 20 62 6f 78 65 73 2c 20 | 61 6e 64 20 79 6f 75 20 | boxes, |and you |
|00001ae0| 63 61 6e 20 73 68 6f 77 | 2c 20 68 69 64 65 20 61 |can show|, hide a|
|00001af0| 6e 64 20 73 65 74 20 74 | 68 65 20 70 72 6f 67 72 |nd set t|he progr|
|00001b00| 65 73 73 20 69 6e 64 69 | 63 61 74 6f 72 2e 0d 0d |ess indi|cator...|
|00001b10| a1 20 53 74 61 74 75 73 | 20 26 20 4d 65 73 73 61 |. Status| & Messa|
|00001b20| 67 65 20 53 74 75 66 66 | 0d 0d 45 78 61 6d 70 6c |ge Stuff|..Exampl|
|00001b30| 65 3a 0d 27 73 79 73 74 | 65 6d 24 70 75 73 68 24 |e:.'syst|em$push$|
|00001b40| 64 69 73 70 6c 61 79 27 | 28 6d 65 73 73 61 67 65 |display'|(message|
|00001b50| 2c 63 65 6e 74 65 72 2c | 27 48 69 27 2c 27 20 27 |,center,|'Hi',' '|
|00001b60| 2c 74 68 65 72 65 2c 27 | 20 75 73 65 72 27 29 2c |,there,'| user'),|
|00001b70| 0d 27 73 79 73 74 65 6d | 24 64 65 6c 61 79 24 74 |.'system|$delay$t|
|00001b80| 69 63 6b 73 27 28 31 30 | 30 29 2c 0d 27 73 79 73 |icks'(10|0),.'sys|
|00001b90| 74 65 6d 24 70 6f 70 24 | 64 69 73 70 6c 61 79 27 |tem$pop$|display'|
|00001ba0| 28 6d 65 73 73 61 67 65 | 29 2e 0d 0d 46 69 72 73 |(message|)...Firs|
|00001bb0| 74 20 61 72 67 75 6d 65 | 6e 74 3a 20 73 74 61 74 |t argume|nt: stat|
|00001bc0| 75 73 20 6f 72 20 6d 65 | 73 73 61 67 65 0d 53 65 |us or me|ssage.Se|
|00001bd0| 63 6f 6e 64 20 61 72 67 | 75 6d 65 6e 74 3a 20 6c |cond arg|ument: l|
|00001be0| 65 66 74 2c 20 63 65 6e | 74 72 65 2c 20 63 65 6e |eft, cen|tre, cen|
|00001bf0| 74 65 72 20 6f 72 20 72 | 69 67 68 74 0d 54 68 69 |ter or r|ight.Thi|
|00001c00| 72 64 2c 20 46 6f 75 72 | 74 68 2c 20 46 69 66 74 |rd, Four|th, Fift|
|00001c10| 68 20 61 6e 64 20 53 69 | 78 74 68 20 41 72 67 75 |h and Si|xth Argu|
|00001c20| 6d 65 6e 74 73 3a 20 74 | 68 65 73 65 20 77 69 6c |ments: t|hese wil|
|00001c30| 6c 20 62 65 20 63 6f 6e | 63 61 74 65 6e 61 74 65 |l be con|catenate|
|00001c40| 64 20 61 6e 64 20 64 69 | 73 70 6c 61 79 65 64 2e |d and di|splayed.|
|00001c50| 0d 0d 50 75 73 68 69 6e | 67 20 61 20 6d 65 73 73 |..Pushin|g a mess|
|00001c60| 61 67 65 20 68 69 64 65 | 73 20 74 68 65 20 6f 6c |age hide|s the ol|
|00001c70| 64 20 6d 65 73 73 61 67 | 65 2c 20 73 6f 20 74 68 |d messag|e, so th|
|00001c80| 61 74 20 77 68 65 6e 20 | 79 6f 75 20 70 6f 70 20 |at when |you pop |
|00001c90| 74 68 65 20 6d 65 73 73 | 61 67 65 2c 20 74 68 65 |the mess|age, the|
|00001ca0| 20 6f 6c 64 20 6d 65 73 | 73 61 67 65 20 72 65 61 | old mes|sage rea|
|00001cb0| 70 70 65 61 72 73 2e 0d | 53 65 74 74 69 6e 67 20 |ppears..|Setting |
|00001cc0| 61 20 6d 65 73 73 61 67 | 65 20 72 65 70 6c 61 63 |a messag|e replac|
|00001cd0| 65 73 20 74 68 65 20 74 | 65 78 74 20 6f 66 20 74 |es the t|ext of t|
|00001ce0| 68 65 20 6f 6c 64 20 6d | 65 73 73 61 67 65 2c 20 |he old m|essage, |
|00001cf0| 77 68 69 63 68 20 63 61 | 6e 6e 6f 74 20 73 75 62 |which ca|nnot sub|
|00001d00| 73 65 71 75 65 6e 74 6c | 79 20 62 65 20 72 65 63 |sequentl|y be rec|
|00001d10| 6f 76 65 72 65 64 2e 0d | 0d a1 20 50 72 6f 67 72 |overed..|.. Progr|
|00001d20| 65 73 73 20 49 6e 64 69 | 63 61 74 6f 72 20 73 74 |ess Indi|cator st|
|00001d30| 75 66 66 0d 0d 27 73 79 | 73 74 65 6d 24 73 68 6f |uff..'sy|stem$sho|
|00001d40| 77 24 70 72 6f 67 72 65 | 73 73 27 2e 20 25 64 69 |w$progre|ss'. %di|
|00001d50| 73 70 6c 61 79 20 70 72 | 6f 67 72 65 73 73 20 74 |splay pr|ogress t|
|00001d60| 68 65 72 6d 6f 6d 65 74 | 65 72 0d 27 73 79 73 74 |hermomet|er.'syst|
|00001d70| 65 6d 24 68 69 64 65 24 | 70 72 6f 67 72 65 73 73 |em$hide$|progress|
|00001d80| 27 2e 20 25 68 69 64 65 | 20 64 69 73 70 6c 61 79 |'. %hide| display|
|00001d90| 20 74 68 65 72 6d 6f 6d | 65 74 65 72 0d 0d 27 73 | thermom|eter..'s|
|00001da0| 79 73 74 65 6d 24 73 65 | 74 24 70 72 6f 67 72 65 |ystem$se|t$progre|
|00001db0| 73 73 27 28 41 2c 42 29 | 2e 20 20 20 25 20 73 65 |ss'(A,B)|. % se|
|00001dc0| 74 20 67 72 61 79 20 70 | 61 72 74 20 6f 66 20 74 |t gray p|art of t|
|00001dd0| 68 65 72 6d 6f 6d 65 74 | 65 72 20 61 73 20 61 20 |hermomet|er as a |
|00001de0| 66 72 61 63 74 69 6f 6e | 20 6f 66 20 74 68 65 20 |fraction| of the |
|00001df0| 72 65 63 74 61 6e 67 6c | 65 20 65 71 75 61 6c 20 |rectangl|e equal |
|00001e00| 74 6f 20 74 68 65 20 72 | 61 74 69 6f 20 41 2f 42 |to the r|atio A/B|
|00001e10| 2e 20 41 20 61 6e 64 20 | 42 20 6d 75 73 74 20 62 |. A and |B must b|
|00001e20| 65 20 69 6e 74 65 67 65 | 72 73 2e 0d 0d 50 72 65 |e intege|rs...Pre|
|00001e30| 76 69 6f 75 73 20 76 61 | 6c 75 65 73 20 6f 66 20 |vious va|lues of |
|00001e40| 41 20 61 6e 64 20 42 20 | 61 72 65 20 6c 6f 73 74 |A and B |are lost|
|00001e50| 2e 0d 0d 4e 6f 74 65 3a | 20 69 66 20 79 6f 75 72 |...Note:| if your|
|00001e60| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 27 73 20 65 | applica|tion's e|
|00001e70| 78 65 63 75 74 69 6f 6e | 20 69 73 20 63 68 61 72 |xecution| is char|
|00001e80| 61 63 74 65 72 69 73 65 | 64 20 62 79 20 70 72 6f |acterise|d by pro|
|00001e90| 63 65 73 73 69 6e 67 20 | 61 20 66 69 6c 65 2c 20 |cessing |a file, |
|00001ea0| 74 68 65 6e 20 62 79 20 | 75 73 69 6e 67 20 74 68 |then by |using th|
|00001eb0| 65 20 27 73 79 73 74 65 | 6d 24 67 65 74 24 66 69 |e 'syste|m$get$fi|
|00001ec0| 6c 65 24 73 69 7a 65 27 | 20 61 6e 64 20 27 73 79 |le$size'| and 'sy|
|00001ed0| 73 74 65 6d 24 67 65 74 | 24 66 70 6f 73 27 20 70 |stem$get|$fpos' p|
|00001ee0| 72 65 64 69 63 61 74 65 | 73 20 28 73 65 65 20 62 |redicate|s (see b|
|00001ef0| 65 6c 6f 77 29 20 69 6e | 20 63 6f 6e 6a 75 6e 63 |elow) in| conjunc|
|00001f00| 74 69 6f 6e 20 77 69 74 | 68 20 74 68 65 20 70 72 |tion wit|h the pr|
|00001f10| 6f 67 72 65 73 73 20 69 | 6e 64 69 63 61 74 6f 72 |ogress i|ndicator|
|00001f20| 2c 20 79 6f 75 20 63 61 | 6e 20 67 69 76 65 20 74 |, you ca|n give t|
|00001f30| 68 65 20 75 73 65 72 20 | 61 6e 20 69 64 65 61 20 |he user |an idea |
|00001f40| 6f 66 20 68 6f 77 20 6d | 75 63 68 20 70 72 6f 67 |of how m|uch prog|
|00001f50| 72 65 73 73 20 69 73 20 | 62 65 69 6e 67 20 6d 61 |ress is |being ma|
|00001f60| 64 65 2e 20 48 65 72 65 | 20 69 73 20 61 6e 20 65 |de. Here| is an e|
|00001f70| 78 61 6d 70 6c 65 20 77 | 68 65 72 65 20 63 61 6c |xample w|here cal|
|00001f80| 6c 73 20 74 6f 20 74 68 | 65 20 67 65 74 30 20 70 |ls to th|e get0 p|
|00001f90| 72 65 64 69 63 61 74 65 | 20 63 6f 75 6c 64 20 62 |redicate| could b|
|00001fa0| 65 20 72 65 70 6c 61 63 | 65 64 20 62 79 20 67 65 |e replac|ed by ge|
|00001fb0| 74 30 57 69 74 68 50 72 | 6f 67 72 65 73 73 3a 0d |t0WithPr|ogress:.|
|00001fc0| 0d 67 65 74 30 57 69 74 | 68 50 72 6f 67 72 65 73 |.get0Wit|hProgres|
|00001fd0| 73 28 58 29 20 3a 2d 0d | 20 20 20 20 20 20 20 20 |s(X) :-.| |
|00001fe0| 73 65 65 69 6e 67 28 75 | 73 65 72 29 2c 21 2c 20 |seeing(u|ser),!, |
|00001ff0| 25 64 6f 6e 27 74 20 64 | 69 73 70 6c 61 79 20 66 |%don't d|isplay f|
|00002000| 6f 72 20 69 6e 70 75 74 | 20 66 72 6f 6d 20 74 68 |or input| from th|
|00002010| 65 20 75 73 65 72 c9 0d | 20 20 20 20 20 20 20 20 |e user..| |
|00002020| 67 65 74 30 28 58 29 2e | 0d 67 65 74 30 57 69 74 |get0(X).|.get0Wit|
|00002030| 68 50 72 6f 67 72 65 73 | 73 28 58 29 20 3a 2d 0d |hProgres|s(X) :-.|
|00002040| 20 20 20 20 20 20 20 20 | 73 65 65 69 6e 67 28 46 | |seeing(F|
|00002050| 69 6c 65 29 2c 0d 20 20 | 20 20 20 20 20 20 27 73 |ile),. | 's|
|00002060| 79 73 74 65 6d 24 67 65 | 74 24 66 69 6c 65 24 73 |ystem$ge|t$file$s|
|00002070| 69 7a 65 27 28 46 69 6c | 65 2c 53 69 7a 65 2c 30 |ize'(Fil|e,Size,0|
|00002080| 29 2c 0d 20 20 20 20 20 | 20 20 20 27 73 79 73 74 |),. | 'syst|
|00002090| 65 6d 24 67 65 74 24 66 | 70 6f 73 27 28 50 6f 73 |em$get$f|pos'(Pos|
|000020a0| 29 2c 0d 20 20 20 20 20 | 20 20 20 27 73 79 73 74 |),. | 'syst|
|000020b0| 65 6d 24 73 65 74 24 70 | 72 6f 67 72 65 73 73 27 |em$set$p|rogress'|
|000020c0| 28 50 6f 73 2c 53 69 7a | 65 29 2c 0d 20 20 20 20 |(Pos,Siz|e),. |
|000020d0| 20 20 20 20 67 65 74 30 | 28 58 29 2e 0d 0d 0d a5 | get0|(X).....|
|000020e0| 20 41 6c 65 72 74 73 20 | 61 6e 64 20 43 6f 6e 66 | Alerts |and Conf|
|000020f0| 69 72 6d 61 74 69 6f 6e | 73 0d 0d 27 73 79 73 74 |irmation|s..'syst|
|00002100| 65 6d 24 61 6c 65 72 74 | 27 28 61 6c 65 72 74 4d |em$alert|'(alertM|
|00002110| 65 73 73 61 67 65 31 2c | 61 6c 65 72 74 4d 65 73 |essage1,|alertMes|
|00002120| 73 61 67 65 32 2c 61 6c | 65 72 74 4d 65 73 73 61 |sage2,al|ertMessa|
|00002130| 67 65 33 2c 61 6c 65 72 | 74 4d 65 73 73 61 67 65 |ge3,aler|tMessage|
|00002140| 34 29 2e 0d 25 6d 75 73 | 74 20 6e 6f 74 20 62 65 |4)..%mus|t not be|
|00002150| 20 73 74 72 75 63 74 75 | 72 65 64 20 74 65 72 6d | structu|red term|
|00002160| 73 2e 20 54 68 65 79 20 | 61 72 65 20 63 6f 6e 63 |s. They |are conc|
|00002170| 61 74 65 6e 61 74 65 64 | 20 26 20 64 69 73 70 6c |atenated| & displ|
|00002180| 61 79 65 64 2e 0d 0d 27 | 73 79 73 74 65 6d 24 63 |ayed...'|system$c|
|00002190| 6f 6e 66 69 72 6d 27 28 | 6d 65 73 73 61 67 65 31 |onfirm'(|message1|
|000021a0| 2c 6d 65 73 73 61 67 65 | 32 2c 6d 65 73 73 61 67 |,message|2,messag|
|000021b0| 65 33 2c 6d 65 73 73 61 | 67 65 34 29 2e 0d 25 6d |e3,messa|ge4)..%m|
|000021c0| 75 73 74 20 6e 6f 74 20 | 62 65 20 73 74 72 75 63 |ust not |be struc|
|000021d0| 74 75 72 65 64 20 74 65 | 72 6d 73 2e 20 54 68 65 |tured te|rms. The|
|000021e0| 79 20 61 72 65 20 63 6f | 6e 63 61 74 65 6e 61 74 |y are co|ncatenat|
|000021f0| 65 64 20 26 20 64 69 73 | 70 6c 61 79 65 64 2e 0d |ed & dis|played..|
|00002200| 53 75 63 63 65 65 64 73 | 20 6f 72 20 66 61 69 6c |Succeeds| or fail|
|00002210| 73 20 64 65 70 65 6e 64 | 69 6e 67 20 6f 6e 20 59 |s depend|ing on Y|
|00002220| 65 73 20 6f 72 20 4e 6f | 20 62 75 74 74 6f 6e 2e |es or No| button.|
|00002230| 0d 0d a5 20 49 6e 66 6f | 72 6d 61 74 69 6f 6e 0d |... Info|rmation.|
|00002240| 0d 27 73 79 73 74 65 6d | 24 6f 77 6e 65 72 24 6e |.'system|$owner$n|
|00002250| 61 6d 65 27 28 4e 61 6d | 65 29 2e 20 25 20 66 72 |ame'(Nam|e). % fr|
|00002260| 6f 6d 20 43 68 6f 6f 73 | 65 72 20 6f 72 20 53 68 |om Choos|er or Sh|
|00002270| 61 72 69 6e 67 20 53 65 | 74 75 70 2e 20 49 74 20 |aring Se|tup. It |
|00002280| 75 73 65 64 20 74 6f 20 | 62 65 20 63 61 6c 6c 65 |used to |be calle|
|00002290| 64 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |d. | |
|000022a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000022b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000022c0| 20 25 27 73 79 73 74 65 | 6d 24 75 73 65 72 6e 61 | %'syste|m$userna|
|000022d0| 6d 65 27 28 58 29 2e 0d | 0d 27 73 79 73 74 65 6d |me'(X)..|.'system|
|000022e0| 24 6d 61 63 68 69 6e 65 | 24 6e 61 6d 65 27 28 4e |$machine|$name'(N|
|000022f0| 61 6d 65 29 2e 20 25 53 | 79 73 74 65 6d 20 37 20 |ame). %S|ystem 7 |
|00002300| 6f 6e 6c 79 20 2d 20 66 | 72 6f 6d 20 53 68 61 72 |only - f|rom Shar|
|00002310| 69 6e 67 20 53 65 74 75 | 70 0d 0d 27 73 79 73 74 |ing Setu|p..'syst|
|00002320| 65 6d 24 6d 61 63 68 69 | 6e 65 24 6b 69 6e 64 27 |em$machi|ne$kind'|
|00002330| 28 4e 61 6d 65 29 2e 20 | 25 53 79 73 74 65 6d 20 |(Name). |%System |
|00002340| 37 20 6f 6e 6c 79 20 2d | 20 65 2e 67 2e 20 50 6f |7 only -| e.g. Po|
|00002350| 77 65 72 42 6f 6f 6b 20 | 31 34 30 2e 0d 0d 27 73 |werBook |140...'s|
|00002360| 79 73 74 65 6d 24 73 68 | 6f 77 24 61 62 6f 75 74 |ystem$sh|ow$about|
|00002370| 27 20 25 53 68 6f 77 73 | 20 74 68 65 20 41 62 6f |' %Shows| the Abo|
|00002380| 75 74 20 4f 70 65 6e 20 | 50 72 6f 6c 6f 67 c9 20 |ut Open |Prolog. |
|00002390| 62 6f 78 0d 27 73 79 73 | 74 65 6d 24 68 69 64 65 |box.'sys|tem$hide|
|000023a0| 24 61 62 6f 75 74 27 20 | 25 53 68 6f 77 73 20 74 |$about' |%Shows t|
|000023b0| 68 65 20 41 62 6f 75 74 | 20 4f 70 65 6e 20 50 72 |he About| Open Pr|
|000023c0| 6f 6c 6f 67 c9 20 62 6f | 78 0d 0d 27 74 6f 6f 6c |olog. bo|x..'tool|
|000023d0| 62 6f 78 24 47 65 74 49 | 6e 64 53 74 72 69 6e 67 |box$GetI|ndString|
|000023e0| 27 28 41 74 6f 6d 2c 52 | 65 73 6f 75 72 63 65 4e |'(Atom,R|esourceN|
|000023f0| 75 6d 62 65 72 2c 49 6e | 64 65 78 29 2e 20 25 73 |umber,In|dex). %s|
|00002400| 61 6d 65 20 61 73 20 74 | 68 65 20 4d 61 63 0d 54 |ame as t|he Mac.T|
|00002410| 6f 6f 6c 62 6f 78 20 47 | 65 74 49 6e 64 53 74 72 |oolbox G|etIndStr|
|00002420| 69 6e 67 2c 20 77 68 65 | 72 65 20 74 68 65 20 73 |ing, whe|re the s|
|00002430| 74 72 69 6e 67 20 69 73 | 20 74 75 72 6e 65 64 20 |tring is| turned |
|00002440| 69 6e 74 6f 20 61 6e 20 | 61 74 6f 6d 2e 0d 0d 27 |into an |atom...'|
|00002450| 73 79 73 74 65 6d 24 70 | 72 65 64 69 63 61 74 65 |system$p|redicate|
|00002460| 27 28 4e 61 6d 65 2c 54 | 65 72 6d 2c 4b 69 6e 64 |'(Name,T|erm,Kind|
|00002470| 29 2e 20 25 61 6c 6c 20 | 6e 6f 72 6d 61 6c 2c 20 |). %all |normal, |
|00002480| 62 75 69 6c 74 2d 69 6e | 20 61 6e 64 20 65 78 74 |built-in| and ext|
|00002490| 65 72 6e 61 6c 20 70 72 | 65 64 69 63 61 74 65 73 |ernal pr|edicates|
|000024a0| 20 28 73 65 65 20 65 78 | 61 6d 70 6c 65 20 69 6e | (see ex|ample in|
|000024b0| 20 4f 70 65 6e 20 50 72 | 6f 6c 6f 67 20 49 6e 66 | Open Pr|olog Inf|
|000024c0| 6f 29 2e 0d 0d a5 20 54 | 69 6d 65 20 26 20 44 61 |o).... T|ime & Da|
|000024d0| 74 65 0d 0d 27 73 79 73 | 74 65 6d 24 73 65 63 6f |te..'sys|tem$seco|
|000024e0| 6e 64 73 27 28 53 65 63 | 6f 6e 64 73 29 2e 20 25 |nds'(Sec|onds). %|
|000024f0| 53 69 6e 63 65 20 31 2f | 31 2f 31 39 30 34 20 2d |Since 1/|1/1904 -|
|00002500| 20 6e 65 67 61 74 69 76 | 65 20 62 75 74 20 64 6f | negativ|e but do|
|00002510| 6e 27 74 20 77 6f 72 72 | 79 2e 20 55 73 65 20 69 |n't worr|y. Use i|
|00002520| 74 20 66 6f 72 20 64 61 | 74 65 20 61 6e 64 20 74 |t for da|te and t|
|00002530| 69 6d 65 2c 20 61 73 20 | 73 68 6f 77 6e 20 62 65 |ime, as |shown be|
|00002540| 6c 6f 77 3a 0d 27 73 79 | 73 74 65 6d 24 64 61 74 |low:.'sy|stem$dat|
|00002550| 65 27 28 53 65 63 6f 6e | 64 73 2c 44 61 74 65 29 |e'(Secon|ds,Date)|
|00002560| 2e 20 25 43 6f 6e 76 65 | 72 74 73 20 53 65 63 6f |. %Conve|rts Seco|
|00002570| 6e 64 73 20 74 6f 20 44 | 61 74 65 0d 27 73 79 73 |nds to D|ate.'sys|
|00002580| 74 65 6d 24 74 69 6d 65 | 27 28 53 65 63 6f 6e 64 |tem$time|'(Second|
|00002590| 73 2c 54 69 6d 65 29 2e | 20 25 43 6f 6e 76 65 72 |s,Time).| %Conver|
|000025a0| 74 73 20 53 65 63 6f 6e | 64 73 20 74 6f 20 54 69 |ts Secon|ds to Ti|
|000025b0| 6d 65 0d 27 73 79 73 74 | 65 6d 24 64 65 6c 61 79 |me.'syst|em$delay|
|000025c0| 24 74 69 63 6b 73 27 28 | 54 69 63 6b 73 29 2e 20 |$ticks'(|Ticks). |
|000025d0| 25 73 74 6f 70 20 65 78 | 65 63 75 74 69 6f 6e 20 |%stop ex|ecution |
|000025e0| 66 6f 72 20 74 68 65 20 | 73 70 65 63 69 66 69 65 |for the |specifie|
|000025f0| 64 20 6e 75 6d 62 65 72 | 20 6f 66 20 54 69 63 6b |d number| of Tick|
|00002600| 73 20 2d 20 61 20 74 69 | 63 6b 20 69 73 20 61 62 |s - a ti|ck is ab|
|00002610| 6f 75 74 20 31 2f 36 30 | 74 68 20 6f 66 20 61 20 |out 1/60|th of a |
|00002620| 73 65 63 6f 6e 64 2e 0d | 0d a5 20 52 61 6e 64 6f |second..|.. Rando|
|00002630| 6d 20 4e 75 6d 62 65 72 | 73 0d 0d 27 73 79 73 74 |m Number|s..'syst|
|00002640| 65 6d 24 72 61 6e 64 6f | 6d 27 28 52 61 6e 67 65 |em$rando|m'(Range|
|00002650| 2c 52 61 6e 64 6f 6d 4e | 75 6d 62 65 72 29 2e 20 |,RandomN|umber). |
|00002660| 25 72 61 6e 67 65 20 69 | 73 20 61 6c 77 61 79 73 |%range i|s always|
|00002670| 20 69 6e 70 75 74 0d 25 | 72 61 6e 67 65 20 69 73 | input.%|range is|
|00002680| 20 66 72 6f 6d 20 30 20 | 74 6f 20 74 68 65 20 70 | from 0 |to the p|
|00002690| 72 65 64 65 63 65 73 73 | 6f 72 20 6f 66 20 52 61 |redecess|or of Ra|
|000026a0| 6e 67 65 2e 0d 49 66 20 | 52 61 6e 67 65 20 69 73 |nge..If |Range is|
|000026b0| 20 70 6f 73 69 74 69 76 | 65 2c 20 74 68 65 6e 20 | positiv|e, then |
|000026c0| 74 68 65 20 6e 75 6d 62 | 65 72 73 20 77 69 6c 6c |the numb|ers will|
|000026d0| 20 67 6f 20 66 72 6f 6d | 20 30 20 74 6f 20 52 61 | go from| 0 to Ra|
|000026e0| 6e 67 65 2d 31 2c 20 69 | 6e 63 6c 75 73 69 76 65 |nge-1, i|nclusive|
|000026f0| 2e 0d 49 66 20 52 61 6e | 67 65 20 69 73 20 6e 65 |..If Ran|ge is ne|
|00002700| 67 61 74 69 76 65 2c 20 | 74 68 65 6e 20 74 68 65 |gative, |then the|
|00002710| 20 6e 75 6d 62 65 72 73 | 20 77 69 6c 6c 20 67 6f | numbers| will go|
|00002720| 20 66 72 6f 6d 20 30 20 | 74 6f 20 52 61 6e 67 65 | from 0 |to Range|
|00002730| 2b 31 2c 20 69 6e 63 6c | 75 73 69 76 65 2e 0d 49 |+1, incl|usive..I|
|00002740| 74 20 64 6f 65 73 6e 27 | 74 20 6d 61 6b 65 20 73 |t doesn'|t make s|
|00002750| 65 6e 73 65 20 74 6f 20 | 61 73 6b 20 66 6f 72 20 |ense to |ask for |
|00002760| 72 61 6e 64 6f 6d 20 6e | 75 6d 62 65 72 73 20 69 |random n|umbers i|
|00002770| 6e 20 74 68 65 20 72 61 | 6e 67 65 20 6f 66 20 2d |n the ra|nge of -|
|00002780| 31 2c 20 30 20 6f 72 20 | 2b 31 2e 0d 0d 25 75 73 |1, 0 or |+1...%us|
|00002790| 65 20 63 6f 6d 6d 61 6e | 64 2d 64 6f 74 20 74 6f |e comman|d-dot to|
|000027a0| 20 65 78 69 74 20 66 72 | 6f 6d 20 74 68 65 20 66 | exit fr|om the f|
|000027b0| 6f 6c 6c 6f 77 69 6e 67 | 20 65 78 61 6d 70 6c 65 |ollowing| example|
|000027c0| 3a 0d 72 65 70 65 61 74 | 2c 27 73 79 73 74 65 6d |:.repeat|,'system|
|000027d0| 24 72 61 6e 64 6f 6d 27 | 28 31 30 2c 52 61 6e 64 |$random'|(10,Rand|
|000027e0| 6f 6d 4e 75 6d 62 65 72 | 29 2c 77 72 69 74 65 28 |omNumber|),write(|
|000027f0| 52 61 6e 64 6f 6d 4e 75 | 6d 62 65 72 29 2c 77 72 |RandomNu|mber),wr|
|00002800| 69 74 65 28 27 20 27 29 | 2c 74 74 79 66 6c 75 73 |ite(' ')|,ttyflus|
|00002810| 68 2c 66 61 69 6c 2e 20 | 0d 0d a5 20 53 6f 75 6e |h,fail. |... Soun|
|00002820| 64 0d 0d 6d 61 63 69 6e | 74 61 6c 6b 28 50 68 72 |d..macin|talk(Phr|
|00002830| 61 73 65 2c 56 6f 6c 75 | 6d 65 29 2e 20 20 25 54 |ase,Volu|me). %T|
|00002840| 68 69 73 20 77 69 6c 6c | 20 73 70 65 61 6b 20 74 |his will| speak t|
|00002850| 68 65 20 74 65 78 74 20 | 6f 66 20 74 68 65 20 70 |he text |of the p|
|00002860| 68 72 61 73 65 2c 20 61 | 6e 64 20 6e 65 65 64 73 |hrase, a|nd needs|
|00002870| 20 4d 61 63 69 6e 54 61 | 6c 6b 20 74 6f 20 77 6f | MacinTa|lk to wo|
|00002880| 72 6b 2e 20 0d 54 68 65 | 20 50 68 72 61 73 65 20 |rk. .The| Phrase |
|00002890| 6d 75 73 74 20 62 65 20 | 61 6e 20 61 74 6f 6d 20 |must be |an atom |
|000028a0| 6f 72 20 61 20 6e 75 6d | 62 65 72 2e 20 0d 50 61 |or a num|ber. .Pa|
|000028b0| 73 73 20 61 20 56 6f 6c | 75 6d 65 20 6f 66 20 30 |ss a Vol|ume of 0|
|000028c0| 20 2d 20 37 2e 20 20 41 | 20 76 6f 6c 75 6d 65 20 | - 7. A| volume |
|000028d0| 6f 66 20 30 20 6d 65 61 | 6e 73 20 74 68 65 20 63 |of 0 mea|ns the c|
|000028e0| 75 72 72 65 6e 74 20 73 | 6f 75 6e 64 20 76 6f 6c |urrent s|ound vol|
|000028f0| 75 6d 65 20 63 6f 6e 74 | 72 6f 6c 20 73 65 74 74 |ume cont|rol sett|
|00002900| 69 6e 67 0d 77 69 6c 6c | 20 62 65 20 75 73 65 64 |ing.will| be used|
|00002910| 2e 0d 44 75 65 20 74 6f | 20 61 20 62 75 67 20 69 |..Due to| a bug i|
|00002920| 6e 20 4d 61 63 69 6e 74 | 61 6c 6b 2c 20 61 6c 6c |n Macint|alk, all|
|00002930| 20 6f 74 68 65 72 20 73 | 6f 75 6e 64 73 20 61 72 | other s|ounds ar|
|00002940| 65 20 64 69 73 61 62 6c | 65 64 21 0d 4b 69 64 73 |e disabl|ed!.Kids|
|00002950| 54 69 6d 65 aa 20 66 72 | 6f 6d 20 47 72 65 61 74 |Time. fr|om Great|
|00002960| 20 57 61 76 65 20 53 6f | 66 74 77 61 72 65 20 68 | Wave So|ftware h|
|00002970| 61 73 20 61 20 77 61 79 | 20 6f 66 20 67 65 74 74 |as a way| of gett|
|00002980| 69 6e 67 20 72 6f 75 6e | 64 20 74 68 69 73 2e 20 |ing roun|d this. |
|00002990| 49 66 20 61 6e 79 6f 6e | 65 20 6b 6e 6f 77 73 20 |If anyon|e knows |
|000029a0| 68 6f 77 2c 20 70 6c 65 | 61 73 65 20 6c 65 74 20 |how, ple|ase let |
|000029b0| 75 73 20 6b 6e 6f 77 2e | 0d 0d 65 67 2e 20 0d 27 |us know.|..eg. .'|
|000029c0| 73 79 73 74 65 6d 24 6f | 77 6e 65 72 24 6e 61 6d |system$o|wner$nam|
|000029d0| 65 27 28 58 29 2c 6d 61 | 63 69 6e 74 61 6c 6b 28 |e'(X),ma|cintalk(|
|000029e0| 27 48 69 27 2c 37 29 2c | 6d 61 63 69 6e 74 61 6c |'Hi',7),|macintal|
|000029f0| 6b 28 58 2c 37 29 2e 0d | 0d 70 6c 61 79 28 53 6f |k(X,7)..|.play(So|
|00002a00| 75 6e 64 4e 61 6d 65 2c | 56 6f 6c 75 6d 65 29 20 |undName,|Volume) |
|00002a10| 77 69 6c 6c 20 70 6c 61 | 79 20 61 6e 79 20 54 79 |will pla|y any Ty|
|00002a20| 70 65 20 31 20 27 73 6e | 64 20 27 20 72 65 73 6f |pe 1 'sn|d ' reso|
|00002a30| 75 72 63 65 2e 0d 53 6f | 75 6e 64 73 20 72 65 63 |urce..So|unds rec|
|00002a40| 6f 72 64 65 64 20 77 69 | 74 68 20 74 68 65 20 d4 |orded wi|th the .|
|00002a50| 53 6f 75 6e 64 d5 20 43 | 6f 6e 74 72 6f 6c 20 50 |Sound. C|ontrol P|
|00002a60| 61 6e 65 6c 20 44 65 76 | 69 63 65 20 61 6e 64 20 |anel Dev|ice and |
|00002a70| 0d 61 6c 6c 20 74 68 65 | 20 73 6f 75 6e 64 73 20 |.all the| sounds |
|00002a80| 66 6f 72 20 74 68 65 20 | 53 79 73 74 65 6d 20 42 |for the |System B|
|00002a90| 65 6c 6c 20 61 72 65 20 | 73 6e 64 73 20 6f 66 20 |ell are |snds of |
|00002aa0| 74 68 69 73 20 74 79 70 | 65 2e 0d 54 6f 20 70 6c |this typ|e..To pl|
|00002ab0| 61 79 20 74 68 65 6d 2c | 20 67 69 76 65 20 74 68 |ay them,| give th|
|00002ac0| 65 69 72 20 6e 61 6d 65 | 73 20 65 78 61 63 74 6c |eir name|s exactl|
|00002ad0| 79 20 61 73 20 74 68 65 | 79 20 61 70 70 65 61 72 |y as the|y appear|
|00002ae0| 20 69 6e 0d 74 68 65 20 | d4 53 6f 75 6e 64 d5 20 | in.the |.Sound. |
|00002af0| 43 6f 6e 74 72 6f 6c 20 | 50 61 6e 65 6c 20 44 65 |Control |Panel De|
|00002b00| 76 69 63 65 2e 0d 42 65 | 20 63 61 72 65 66 75 6c |vice..Be| careful|
|00002b10| 20 74 6f 20 67 65 74 20 | 73 70 61 63 69 6e 67 20 | to get |spacing |
|00002b20| 61 6e 64 20 70 75 6e 63 | 74 75 61 74 69 6f 6e 20 |and punc|tuation |
|00002b30| 65 78 61 63 74 6c 79 20 | 72 69 67 68 74 2e 0d 49 |exactly |right..I|
|00002b40| 66 20 74 68 65 20 73 6f | 75 6e 64 20 63 61 6e 27 |f the so|und can'|
|00002b50| 74 20 62 65 20 66 6f 75 | 6e 64 2c 20 6f 72 20 69 |t be fou|nd, or i|
|00002b60| 73 20 74 6f 6f 20 62 69 | 67 20 74 6f 20 66 69 74 |s too bi|g to fit|
|00002b70| 20 69 6e 74 6f 20 6d 65 | 6d 6f 72 79 2c 0d 74 68 | into me|mory,.th|
|00002b80| 65 20 63 61 6c 6c 20 77 | 69 6c 6c 20 66 61 69 6c |e call w|ill fail|
|00002b90| 2c 0d 50 61 73 73 20 61 | 20 56 6f 6c 75 6d 65 20 |,.Pass a| Volume |
|00002ba0| 6f 66 20 30 20 2d 20 37 | 2e 20 20 41 20 76 6f 6c |of 0 - 7|. A vol|
|00002bb0| 75 6d 65 20 6f 66 20 30 | 20 6d 65 61 6e 73 20 74 |ume of 0| means t|
|00002bc0| 68 65 20 63 75 72 72 65 | 6e 74 20 73 6f 75 6e 64 |he curre|nt sound|
|00002bd0| 20 76 6f 6c 75 6d 65 20 | 63 6f 6e 74 72 6f 6c 20 | volume |control |
|00002be0| 73 65 74 74 69 6e 67 0d | 77 69 6c 6c 20 62 65 20 |setting.|will be |
|00002bf0| 75 73 65 64 2e 0d 0d 45 | 2e 67 2e 0d 70 6c 61 79 |used...E|.g..play|
|00002c00| 28 27 53 69 6d 70 6c 65 | 20 42 65 65 70 27 2c 35 |('Simple| Beep',5|
|00002c10| 29 2e 0d 0d 54 68 65 20 | 73 6e 64 20 72 65 73 6f |)...The |snd reso|
|00002c20| 75 72 63 65 73 20 63 61 | 6e 20 62 65 20 72 65 73 |urces ca|n be res|
|00002c30| 69 64 65 6e 74 20 69 6e | 20 61 6e 79 20 6f 70 65 |ident in| any ope|
|00002c40| 6e 20 77 69 6e 64 6f 77 | 2c 20 74 68 65 20 57 6f |n window|, the Wo|
|00002c50| 72 6b 73 68 65 65 74 2c | 0d 4f 70 65 6e 20 50 72 |rksheet,|.Open Pr|
|00002c60| 6f 6c 6f 67 20 69 74 73 | 65 6c 66 2c 20 6f 72 20 |olog its|elf, or |
|00002c70| 74 68 65 20 53 79 73 74 | 65 6d 2e 0d 0d 53 70 65 |the Syst|em...Spe|
|00002c80| 65 63 68 20 4d 61 6e 61 | 67 65 72 20 70 72 65 64 |ech Mana|ger pred|
|00002c90| 69 63 61 74 65 73 2e 0d | 0d 54 77 6f 20 70 72 65 |icates..|.Two pre|
|00002ca0| 64 69 63 61 74 65 73 20 | 61 72 65 20 61 76 61 69 |dicates |are avai|
|00002cb0| 6c 61 62 6c 65 3a 20 73 | 70 65 61 6b 41 74 6f 6d |lable: s|peakAtom|
|00002cc0| 2f 31 20 61 6e 64 20 73 | 70 65 65 63 68 42 75 73 |/1 and s|peechBus|
|00002cd0| 79 2f 31 2e 0d 54 68 65 | 79 20 62 6f 74 68 20 6e |y/1..The|y both n|
|00002ce0| 65 65 64 20 74 68 65 20 | 53 70 65 65 63 68 20 4d |eed the |Speech M|
|00002cf0| 61 6e 61 67 65 72 20 74 | 6f 20 62 65 20 70 72 65 |anager t|o be pre|
|00002d00| 73 65 6e 74 20 61 6e 64 | 20 77 69 6c 6c 20 74 68 |sent and| will th|
|00002d10| 72 6f 77 20 65 72 72 6f | 72 20 63 6f 64 65 73 20 |row erro|r codes |
|00002d20| 69 66 20 69 74 20 69 73 | 20 6e 6f 74 2e 20 0d 73 |if it is| not. .s|
|00002d30| 70 65 61 6b 41 74 6f 6d | 2f 31 20 74 61 6b 65 73 |peakAtom|/1 takes|
|00002d40| 20 69 74 73 20 61 74 6f | 6d 20 61 6e 64 20 73 70 | its ato|m and sp|
|00002d50| 65 61 6b 73 20 69 74 2e | 20 59 6f 75 20 68 61 76 |eaks it.| You hav|
|00002d60| 65 20 6e 6f 20 63 6f 6e | 74 72 6f 6c 20 6f 76 65 |e no con|trol ove|
|00002d70| 72 20 61 6e 79 20 6f 66 | 20 74 68 65 20 70 61 72 |r any of| the par|
|00002d80| 61 6d 65 74 65 72 73 20 | 6f 66 20 73 70 65 65 63 |ameters |of speec|
|00002d90| 68 2e 20 41 73 20 73 6f | 6f 6e 20 61 73 20 74 68 |h. As so|on as th|
|00002da0| 65 20 63 6f 6d 6d 61 6e | 64 20 69 73 20 73 65 6e |e comman|d is sen|
|00002db0| 74 20 74 6f 20 74 68 65 | 20 53 6f 75 6e 64 20 4d |t to the| Sound M|
|00002dc0| 61 6e 61 67 65 72 2c 20 | 63 6f 6e 74 72 6f 6c 20 |anager, |control |
|00002dd0| 72 65 74 75 72 6e 73 20 | 74 6f 20 4f 70 65 6e 20 |returns |to Open |
|00002de0| 50 72 6f 6c 6f 67 2c 20 | 77 68 69 63 68 20 63 61 |Prolog, |which ca|
|00002df0| 6e 20 74 68 65 6e 20 70 | 72 6f 63 65 73 73 20 77 |n then p|rocess w|
|00002e00| 68 69 6c 65 20 74 68 65 | 20 73 70 65 65 63 68 20 |hile the| speech |
|00002e10| 69 73 20 62 65 69 6e 67 | 20 75 74 74 65 72 65 64 |is being| uttered|
|00002e20| 2e 20 49 66 20 79 6f 75 | 20 65 78 65 63 75 74 65 |. If you| execute|
|00002e30| 20 61 6e 6f 74 68 65 72 | 20 73 70 65 61 6b 41 74 | another| speakAt|
|00002e40| 6f 6d 2c 20 74 68 65 20 | 70 72 65 76 69 6f 75 73 |om, the |previous|
|00002e50| 20 73 70 65 65 63 68 20 | 77 69 6c 6c 20 63 6f 6d | speech |will com|
|00002e60| 70 6c 65 74 65 20 62 65 | 66 6f 72 65 20 74 68 65 |plete be|fore the|
|00002e70| 20 63 6f 6d 6d 61 6e 64 | 20 69 73 20 68 6f 6e 6f | command| is hono|
|00002e80| 75 72 65 64 2e 0d 73 70 | 65 65 63 68 42 75 73 79 |ured..sp|eechBusy|
|00002e90| 2f 31 20 75 6e 69 66 69 | 65 73 20 69 74 73 20 61 |/1 unifi|es its a|
|00002ea0| 72 67 75 6d 65 6e 74 20 | 77 69 74 68 20 74 68 65 |rgument |with the|
|00002eb0| 20 6e 75 6d 62 65 72 20 | 6f 66 20 73 70 65 65 63 | number |of speec|
|00002ec0| 68 20 63 68 61 6e 6e 65 | 6c 73 20 62 75 73 79 2e |h channe|ls busy.|
|00002ed0| 20 49 66 20 74 68 65 72 | 65 20 69 73 20 6e 6f 20 | If ther|e is no |
|00002ee0| 73 70 65 65 63 68 2c 20 | 74 68 65 20 6e 75 6d 62 |speech, |the numb|
|00002ef0| 65 72 20 6f 66 20 63 68 | 61 6e 6e 65 6c 73 20 77 |er of ch|annels w|
|00002f00| 69 6c 6c 20 62 65 20 30 | 2e 0d 54 68 65 73 65 20 |ill be 0|..These |
|00002f10| 61 72 65 20 65 78 74 65 | 72 6e 61 6c 20 70 72 65 |are exte|rnal pre|
|00002f20| 64 69 63 61 74 65 73 2c | 20 61 6e 64 20 74 68 65 |dicates,| and the|
|00002f30| 20 63 6f 64 65 20 66 6f | 72 20 74 68 65 6d 20 69 | code fo|r them i|
|00002f40| 73 20 67 69 76 65 6e 20 | 69 6e 20 74 68 65 20 45 |s given |in the E|
|00002f50| 78 74 65 72 6e 61 6c 20 | 50 72 65 64 69 63 61 74 |xternal |Predicat|
|00002f60| 65 73 c9 20 46 6f 6c 64 | 65 72 2e 0d 0d 0d a5 20 |es. Fold|er..... |
|00002f70| 4c 6f 77 20 4c 65 76 65 | 6c 20 44 65 62 75 67 0d |Low Leve|l Debug.|
|00002f80| 0d 6d 61 63 73 62 75 67 | 20 26 20 6d 61 63 73 62 |.macsbug| & macsb|
|00002f90| 75 67 46 61 69 6c 20 6e | 65 65 64 20 4d 61 63 73 |ugFail n|eed Macs|
|00002fa0| 62 75 67 20 74 6f 20 77 | 6f 72 6b 2c 20 61 6e 64 |bug to w|ork, and|
|00002fb0| 20 77 69 6c 6c 20 63 72 | 61 73 68 20 6f 74 68 65 | will cr|ash othe|
|00002fc0| 72 77 69 73 65 2e 0d 0d | a5 20 46 69 6c 65 20 53 |rwise...|. File S|
|00002fd0| 74 75 66 66 0d 0d 27 73 | 79 73 74 65 6d 24 67 65 |tuff..'s|ystem$ge|
|00002fe0| 74 24 66 69 6c 65 24 73 | 69 7a 65 27 28 46 69 6c |t$file$s|ize'(Fil|
|00002ff0| 65 4e 61 6d 65 2c 46 69 | 6c 65 53 69 7a 65 2c 45 |eName,Fi|leSize,E|
|00003000| 72 72 6f 72 4e 75 6d 62 | 65 72 29 2e 0d 25 72 65 |rrorNumb|er)..%re|
|00003010| 74 75 72 6e 73 20 69 6e | 20 46 69 6c 65 53 69 7a |turns in| FileSiz|
|00003020| 65 20 74 68 65 20 73 69 | 7a 65 20 6f 66 20 46 69 |e the si|ze of Fi|
|00003030| 6c 65 4e 61 6d 65 20 69 | 6e 20 62 79 74 65 73 2e |leName i|n bytes.|
|00003040| 20 28 4e 6f 72 6d 61 6c | 6c 79 20 6f 6e 65 20 63 | (Normal|ly one c|
|00003050| 68 61 72 61 63 74 65 72 | 20 6f 63 63 75 70 69 65 |haracter| occupie|
|00003060| 73 20 6f 6e 65 20 62 79 | 74 65 2e 29 20 41 6e 20 |s one by|te.) An |
|00003070| 45 72 72 6f 72 4e 75 6d | 62 65 72 20 6f 66 20 30 |ErrorNum|ber of 0|
|00003080| 20 69 73 20 4f 4b 2c 20 | 61 6e 79 74 68 69 6e 67 | is OK, |anything|
|00003090| 20 65 6c 73 65 20 69 73 | 20 61 20 70 72 6f 62 6c | else is| a probl|
|000030a0| 65 6d 2e 20 4e 6f 74 65 | 20 74 68 61 74 20 69 74 |em. Note| that it|
|000030b0| 20 69 73 6e 27 74 20 6e | 65 63 65 73 73 61 72 69 | isn't n|ecessari|
|000030c0| 6c 79 20 70 6f 73 73 69 | 62 6c 65 20 74 6f 20 6f |ly possi|ble to o|
|000030d0| 70 65 6e 20 74 68 65 20 | 66 69 6c 65 2e 0d 65 2e |pen the |file..e.|
|000030e0| 67 2e 0d 27 73 79 73 74 | 65 6d 24 67 65 74 24 66 |g..'syst|em$get$f|
|000030f0| 69 6c 65 24 73 69 7a 65 | 27 28 27 4f 70 65 6e 20 |ile$size|'('Open |
|00003100| 50 72 6f 6c 6f 67 20 49 | 6e 66 6f 27 2c 46 69 6c |Prolog I|nfo',Fil|
|00003110| 65 53 69 7a 65 2c 45 72 | 72 6f 72 4e 75 6d 62 65 |eSize,Er|rorNumbe|
|00003120| 72 29 2e 0d 27 73 79 73 | 74 65 6d 24 67 65 74 24 |r)..'sys|tem$get$|
|00003130| 66 70 6f 73 27 28 46 70 | 6f 73 29 2e 0d 0d 25 72 |fpos'(Fp|os)...%r|
|00003140| 65 74 75 72 6e 73 20 74 | 68 65 20 6f 72 64 69 6e |eturns t|he ordin|
|00003150| 61 74 65 20 28 74 68 61 | 74 20 69 73 2c 20 74 68 |ate (tha|t is, th|
|00003160| 65 20 70 6f 73 69 74 69 | 6f 6e 20 69 6e 20 74 68 |e positi|on in th|
|00003170| 65 20 66 69 6c 65 2c 20 | 73 74 61 72 74 69 6e 67 |e file, |starting|
|00003180| 20 61 74 20 30 29 20 6f | 66 20 74 68 65 20 6e 65 | at 0) o|f the ne|
|00003190| 78 74 20 63 68 61 72 61 | 63 74 65 72 20 74 6f 20 |xt chara|cter to |
|000031a0| 62 65 20 72 65 61 64 20 | 66 72 6f 6d 20 74 68 65 |be read |from the|
|000031b0| 20 63 75 72 72 65 6e 74 | 20 69 6e 70 75 74 20 66 | current| input f|
|000031c0| 69 6c 65 2e 0d 20 0d 27 | 6f 70 65 6e 24 70 72 6f |ile.. .'|open$pro|
|000031d0| 6c 6f 67 24 65 6f 66 24 | 63 68 61 72 27 28 43 75 |log$eof$|char'(Cu|
|000031e0| 72 72 65 6e 74 45 6f 66 | 43 68 61 72 2c 4e 65 77 |rrentEof|Char,New|
|000031f0| 45 6f 66 43 68 61 72 29 | 2e 20 25 64 65 66 61 75 |EofChar)|. %defau|
|00003200| 6c 74 20 69 73 20 32 36 | 0d 27 6f 70 65 6e 24 70 |lt is 26|.'open$p|
|00003210| 72 6f 6c 6f 67 24 65 6f | 6c 6e 24 63 68 61 72 27 |rolog$eo|ln$char'|
|00003220| 28 43 75 72 72 65 6e 74 | 45 6f 6c 6e 43 68 61 72 |(Current|EolnChar|
|00003230| 2c 4e 65 77 45 6f 6c 6e | 43 68 61 72 29 2e 20 25 |,NewEoln|Char). %|
|00003240| 64 65 66 61 75 6c 74 20 | 33 31 0d 0d 54 68 65 73 |default |31..Thes|
|00003250| 65 20 61 72 65 20 74 68 | 65 20 63 68 61 72 61 63 |e are th|e charac|
|00003260| 74 65 72 73 20 72 65 74 | 75 72 6e 65 64 20 62 79 |ters ret|urned by|
|00003270| 20 67 65 74 20 6f 72 20 | 67 65 74 30 20 66 6f 72 | get or |get0 for|
|00003280| 20 61 6e 20 65 6e 64 2d | 6f 66 2d 6c 69 6e 65 20 | an end-|of-line |
|00003290| 63 6f 6e 64 69 74 69 6f | 6e 20 6f 66 20 61 6e 20 |conditio|n of an |
|000032a0| 65 6e 64 2d 6f 66 2d 66 | 69 6c 65 20 63 6f 6e 64 |end-of-f|ile cond|
|000032b0| 69 74 69 6f 6e 2c 20 63 | 68 6f 73 65 6e 20 66 6f |ition, c|hosen fo|
|000032c0| 72 20 63 6f 6d 70 61 74 | 69 62 69 6c 69 74 79 20 |r compat|ibility |
|000032d0| 77 69 74 68 20 44 45 43 | 31 30 20 50 72 6f 6c 6f |with DEC|10 Prolo|
|000032e0| 67 2e 0d 0d a5 20 57 69 | 6e 64 6f 77 2d 68 61 6e |g.... Wi|ndow-han|
|000032f0| 64 6c 69 6e 67 20 50 72 | 65 64 69 63 61 74 65 73 |dling Pr|edicates|
|00003300| 2e 0d 0d 41 20 6e 75 6d | 62 65 72 20 6f 66 20 70 |...A num|ber of p|
|00003310| 72 65 64 69 63 61 74 65 | 73 20 68 61 76 65 20 62 |redicate|s have b|
|00003320| 65 65 6e 20 77 72 69 74 | 74 65 6e 20 74 6f 20 68 |een writ|ten to h|
|00003330| 61 6e 64 6c 65 20 77 69 | 6e 64 6f 77 2d 62 61 73 |andle wi|ndow-bas|
|00003340| 65 64 20 49 2f 4f 2e 0d | 50 6c 65 61 73 65 20 62 |ed I/O..|Please b|
|00003350| 65 20 61 77 61 72 65 20 | 74 68 61 74 20 74 68 65 |e aware |that the|
|00003360| 79 20 61 72 65 20 73 75 | 62 6a 65 63 74 20 74 6f |y are su|bject to|
|00003370| 20 63 68 61 6e 67 65 2e | 0d 0d 42 61 73 69 63 20 | change.|..Basic |
|00003380| 49 64 65 61 73 3a 0d a1 | 09 57 69 6e 64 6f 77 20 |Ideas:..|.Window |
|00003390| 4e 75 6d 62 65 72 73 0d | 57 65 20 75 73 65 20 77 |Numbers.|We use w|
|000033a0| 69 6e 64 6f 77 20 6e 75 | 6d 62 65 72 73 20 62 65 |indow nu|mbers be|
|000033b0| 63 61 75 73 65 20 69 74 | 20 69 73 20 6e 6f 74 20 |cause it| is not |
|000033c0| 70 6f 73 73 69 62 6c 65 | 20 74 6f 20 72 65 66 65 |possible| to refe|
|000033d0| 72 20 74 6f 20 61 20 77 | 69 6e 64 6f 77 20 62 79 |r to a w|indow by|
|000033e0| 20 69 74 73 20 6e 61 6d | 65 2e 20 54 68 69 73 20 | its nam|e. This |
|000033f0| 69 73 20 62 65 63 61 75 | 73 65 20 69 74 73 20 6e |is becau|se its n|
|00003400| 61 6d 65 20 6d 61 79 20 | 63 68 61 6e 67 65 2c 20 |ame may |change, |
|00003410| 61 6e 64 20 62 65 63 61 | 75 73 65 20 28 69 6e 20 |and beca|use (in |
|00003420| 74 68 65 6f 72 79 20 61 | 6e 79 77 61 79 29 20 6d |theory a|nyway) m|
|00003430| 61 6e 79 20 77 69 6e 64 | 6f 77 73 20 63 6f 75 6c |any wind|ows coul|
|00003440| 64 20 68 61 76 65 20 74 | 68 65 20 73 61 6d 65 20 |d have t|he same |
|00003450| 6e 61 6d 65 73 2e 0d 53 | 6f 2c 20 65 76 65 72 79 |names..S|o, every|
|00003460| 20 77 69 6e 64 6f 77 20 | 69 73 20 61 73 73 69 67 | window |is assig|
|00003470| 6e 65 64 20 61 20 77 69 | 6e 64 6f 77 20 6e 75 6d |ned a wi|ndow num|
|00003480| 62 65 72 20 77 68 65 6e | 20 69 74 20 69 73 20 63 |ber when| it is c|
|00003490| 72 65 61 74 65 64 20 28 | 64 69 73 74 69 6e 63 74 |reated (|distinct|
|000034a0| 20 66 72 6f 6d 20 69 74 | 73 20 70 61 72 61 6d 65 | from it|s parame|
|000034b0| 74 65 72 20 70 6f 69 6e | 74 65 72 20 6f 72 20 66 |ter poin|ter or f|
|000034c0| 69 6c 65 20 6e 75 6d 62 | 65 72 20 65 74 63 2e 29 |ile numb|er etc.)|
|000034d0| 2e 20 0d 0d a1 09 53 74 | 61 72 74 69 6e 67 20 50 |. ....St|arting P|
|000034e0| 6f 69 6e 74 65 72 20 26 | 20 53 69 6e 67 6c 65 2d |ointer &| Single-|
|000034f0| 4c 69 6e 65 2d 53 65 6c | 65 63 74 69 6f 6e 0d 57 |Line-Sel|ection.W|
|00003500| 68 65 6e 65 76 65 72 20 | 74 65 78 74 20 69 73 20 |henever |text is |
|00003510| 6f 75 74 70 75 74 20 74 | 6f 20 61 20 77 69 6e 64 |output t|o a wind|
|00003520| 6f 77 20 28 73 61 79 20 | 75 73 69 6e 67 20 74 68 |ow (say |using th|
|00003530| 65 20 77 72 69 74 65 20 | 63 6f 6d 6d 61 6e 64 29 |e write |command)|
|00003540| 2c 20 61 20 70 6f 69 6e | 74 65 72 2c 20 63 61 6c |, a poin|ter, cal|
|00003550| 6c 65 64 20 74 68 65 20 | 53 74 61 72 74 69 6e 67 |led the |Starting|
|00003560| 20 50 6f 69 6e 74 65 72 | 2c 20 69 73 20 6d 61 64 | Pointer|, is mad|
|00003570| 65 20 70 6f 69 6e 74 20 | 74 6f 20 74 68 65 20 6e |e point |to the n|
|00003580| 65 78 74 20 63 68 61 72 | 61 63 74 65 72 20 61 66 |ext char|acter af|
|00003590| 74 65 72 20 74 68 65 20 | 6c 61 73 74 0d 63 68 61 |ter the |last.cha|
|000035a0| 72 61 63 74 65 72 20 6f | 75 74 70 75 74 2e 0d 0d |racter o|utput...|
|000035b0| 57 68 65 6e 20 61 20 75 | 73 65 72 20 73 65 6c 65 |When a u|ser sele|
|000035c0| 63 74 73 20 74 65 78 74 | 20 75 73 69 6e 67 20 74 |cts text| using t|
|000035d0| 68 65 20 45 4e 54 45 52 | 20 6b 65 79 2c 20 74 68 |he ENTER| key, th|
|000035e0| 65 20 74 65 78 74 20 73 | 65 6c 65 63 74 65 64 20 |e text s|elected |
|000035f0| 67 6f 65 73 0d 69 6e 74 | 6f 20 61 20 74 65 78 74 |goes.int|o a text|
|00003600| 20 62 75 66 66 65 72 20 | 74 68 61 74 20 69 73 20 | buffer |that is |
|00003610| 70 61 73 73 65 64 20 74 | 6f 20 74 68 65 20 50 72 |passed t|o the Pr|
|00003620| 6f 6c 6f 67 20 69 6e 74 | 65 72 70 72 65 74 65 72 |olog int|erpreter|
|00003630| 2e 0d 49 6e 20 74 68 65 | 20 63 61 73 65 20 6f 66 |..In the| case of|
|00003640| 20 73 69 6e 67 6c 65 2d | 6c 69 6e 65 2d 73 65 6c | single-|line-sel|
|00003650| 65 63 74 69 6f 6e 2c 20 | 74 68 65 20 73 74 61 72 |ection, |the star|
|00003660| 74 20 6f 66 20 74 68 65 | 20 73 65 6c 65 63 74 69 |t of the| selecti|
|00003670| 6f 6e 20 69 73 20 66 6f | 75 6e 64 20 62 79 20 67 |on is fo|und by g|
|00003680| 6f 69 6e 67 20 66 72 6f | 6d 20 74 68 65 20 63 61 |oing fro|m the ca|
|00003690| 72 65 74 20 62 61 63 6b | 77 61 72 64 73 20 61 6c |ret back|wards al|
|000036a0| 6f 6e 67 20 74 68 65 20 | 6c 69 6e 65 20 74 6f 20 |ong the |line to |
|000036b0| 74 68 65 20 73 74 61 72 | 74 20 6f 66 20 74 68 65 |the star|t of the|
|000036c0| 20 6c 69 6e 65 20 6f 72 | 20 74 6f 20 74 68 65 20 | line or| to the |
|000036d0| 53 74 61 72 74 69 6e 67 | 20 50 6f 69 6e 74 65 72 |Starting| Pointer|
|000036e0| 2c 20 77 68 69 63 68 65 | 76 65 72 20 63 6f 6d 65 |, whiche|ver come|
|000036f0| 73 20 66 69 72 73 74 2e | 20 54 68 65 20 65 6e 64 |s first.| The end|
|00003700| 20 6f 66 20 74 68 65 20 | 73 65 6c 65 63 74 69 6f | of the |selectio|
|00003710| 6e 20 69 73 20 74 68 65 | 20 65 6e 64 20 6f 66 20 |n is the| end of |
|00003720| 74 68 65 20 6c 69 6e 65 | 2e 20 0d 0d a1 20 48 69 |the line|. ... Hi|
|00003730| 67 68 6c 69 67 68 74 69 | 6e 67 20 26 20 4f 75 74 |ghlighti|ng & Out|
|00003740| 6c 69 6e 65 73 0d 49 74 | 20 69 73 20 70 6f 73 73 |lines.It| is poss|
|00003750| 69 62 6c 65 20 74 6f 20 | 68 69 67 68 6c 69 67 68 |ible to |highligh|
|00003760| 74 20 61 20 70 61 72 74 | 69 63 75 6c 61 72 20 72 |t a part|icular r|
|00003770| 75 6e 20 6f 66 20 74 65 | 78 74 2e 20 4a 75 73 74 |un of te|xt. Just|
|00003780| 20 74 6f 20 63 6f 6e 66 | 75 73 65 20 79 6f 75 2c | to conf|use you,|
|00003790| 0d 74 68 65 20 68 69 67 | 68 6c 69 67 68 74 20 69 |.the hig|hlight i|
|000037a0| 73 20 63 61 6c 6c 65 64 | 20 61 6e 20 6f 75 74 6c |s called| an outl|
|000037b0| 69 6e 65 2c 20 62 65 63 | 61 75 73 65 20 74 68 61 |ine, bec|ause tha|
|000037c0| 74 27 73 20 68 6f 77 20 | 69 74 20 73 74 61 72 74 |t's how |it start|
|000037d0| 65 64 20 6f 75 74 2e 0d | 54 68 65 20 68 69 67 68 |ed out..|The high|
|000037e0| 6c 69 67 68 74 20 77 69 | 6c 6c 20 27 73 74 69 63 |light wi|ll 'stic|
|000037f0| 6b 27 20 74 6f 20 74 68 | 65 20 74 65 78 74 20 73 |k' to th|e text s|
|00003800| 70 65 63 69 66 69 65 64 | 20 65 76 65 6e 20 77 68 |pecified| even wh|
|00003810| 65 6e 20 74 65 78 74 20 | 62 65 66 6f 72 65 2c 0d |en text |before,.|
|00003820| 77 69 74 68 69 6e 20 6f | 72 20 61 66 74 65 72 20 |within o|r after |
|00003830| 69 74 20 68 61 73 20 62 | 65 65 6e 20 61 64 64 65 |it has b|een adde|
|00003840| 64 20 6f 72 20 72 65 6d | 6f 76 65 64 2e 20 54 68 |d or rem|oved. Th|
|00003850| 65 72 65 66 6f 72 65 20 | 69 74 27 73 20 6e 6f 74 |erefore |it's not|
|00003860| 20 73 61 66 65 20 74 6f | 0d 72 65 66 65 72 20 74 | safe to|.refer t|
|00003870| 6f 20 61 20 68 69 67 68 | 6c 69 67 68 74 20 62 79 |o a high|light by|
|00003880| 20 69 74 73 20 73 74 61 | 72 74 20 26 20 65 6e 64 | its sta|rt & end|
|00003890| 20 70 6f 69 6e 74 73 2c | 20 77 68 69 63 68 20 6d | points,| which m|
|000038a0| 61 79 20 76 61 72 79 2e | 20 49 6e 73 74 65 61 64 |ay vary.| Instead|
|000038b0| 2c 20 61 0d 68 69 67 68 | 6c 69 67 68 74 20 69 73 |, a.high|light is|
|000038c0| 20 67 69 76 65 6e 20 61 | 20 75 6e 69 71 75 65 20 | given a| unique |
|000038d0| 69 6e 64 65 78 20 6e 75 | 6d 62 65 72 20 62 79 20 |index nu|mber by |
|000038e0| 77 68 69 63 68 20 69 74 | 20 6d 61 79 20 62 65 20 |which it| may be |
|000038f0| 72 65 66 65 72 72 65 64 | 20 74 6f 0d 6c 61 74 65 |referred| to.late|
|00003900| 72 2e 0d 0d d7 09 53 6f | 6d 65 20 42 75 69 6c 74 |r.....So|me Built|
|00003910| 2d 49 6e 73 0d 0d 27 73 | 79 73 74 65 6d 24 77 69 |-Ins..'s|ystem$wi|
|00003920| 6e 64 6f 77 24 6f 70 65 | 6e 24 66 69 6c 65 24 77 |ndow$ope|n$file$w|
|00003930| 69 6e 64 6f 77 27 28 4e | 61 6d 65 2c 57 69 6e 64 |indow'(N|ame,Wind|
|00003940| 6f 77 4e 75 6d 62 65 72 | 2c 52 65 73 75 6c 74 43 |owNumber|,ResultC|
|00003950| 6f 64 65 29 0d 41 20 77 | 69 6e 64 6f 77 20 69 73 |ode).A w|indow is|
|00003960| 20 6f 70 65 6e 65 64 20 | 77 69 74 68 20 74 68 65 | opened |with the|
|00003970| 20 6e 61 6d 65 20 67 69 | 76 65 6e 20 28 6f 72 20 | name gi|ven (or |
|00003980| 62 72 6f 75 67 68 74 20 | 74 6f 20 74 68 65 20 66 |brought |to the f|
|00003990| 72 6f 6e 74 20 69 66 20 | 69 74 27 73 0d 6f 70 65 |ront if |it's.ope|
|000039a0| 6e 20 61 6c 72 65 61 64 | 79 29 2e 20 41 20 66 69 |n alread|y). A fi|
|000039b0| 6c 65 20 6f 66 20 74 68 | 65 20 73 61 6d 65 20 6e |le of th|e same n|
|000039c0| 61 6d 65 20 6d 75 73 74 | 20 65 78 69 73 74 2c 20 |ame must| exist, |
|000039d0| 61 6e 64 20 69 74 27 73 | 20 6f 70 65 6e 65 64 20 |and it's| opened |
|000039e0| 69 6e 74 6f 20 74 68 65 | 0d 77 69 6e 64 6f 77 2e |into the|.window.|
|000039f0| 20 41 20 72 65 73 75 6c | 74 20 63 6f 64 65 20 6f | A resul|t code o|
|00003a00| 66 20 30 20 69 6e 64 69 | 63 61 74 65 73 20 65 76 |f 0 indi|cates ev|
|00003a10| 65 72 79 74 68 69 6e 67 | 20 77 61 73 20 4f 4b 3b |erything| was OK;|
|00003a20| 0d 61 6e 79 74 68 69 6e | 67 20 65 6c 73 65 20 6d |.anythin|g else m|
|00003a30| 65 61 6e 73 20 73 6f 6d | 65 20 65 72 72 6f 72 20 |eans som|e error |
|00003a40| 6f 63 63 75 72 65 64 2e | 20 53 74 61 6e 64 61 72 |occured.| Standar|
|00003a50| 64 20 4d 61 63 69 6e 74 | 6f 73 68 0d 65 72 72 6f |d Macint|osh.erro|
|00003a60| 72 20 63 6f 64 65 73 20 | 61 72 65 20 75 73 65 64 |r codes |are used|
|00003a70| 2e 0d 0d 27 73 79 73 74 | 65 6d 24 77 69 6e 64 6f |...'syst|em$windo|
|00003a80| 77 24 6f 70 65 6e 24 6e | 65 77 24 77 69 6e 64 6f |w$open$n|ew$windo|
|00003a90| 77 27 28 4e 61 6d 65 2c | 57 69 6e 64 6f 77 4e 75 |w'(Name,|WindowNu|
|00003aa0| 6d 62 65 72 2c 52 65 73 | 75 6c 74 43 6f 64 65 29 |mber,Res|ultCode)|
|00003ab0| 0d 41 20 77 69 6e 64 6f | 77 20 69 73 20 6f 70 65 |.A windo|w is ope|
|00003ac0| 6e 65 64 20 77 69 74 68 | 20 74 68 65 20 6e 61 6d |ned with| the nam|
|00003ad0| 65 20 67 69 76 65 6e 20 | 28 6f 72 20 62 72 6f 75 |e given |(or brou|
|00003ae0| 67 68 74 20 74 6f 20 74 | 68 65 20 66 72 6f 6e 74 |ght to t|he front|
|00003af0| 20 69 66 20 69 74 27 73 | 0d 6f 70 65 6e 20 61 6c | if it's|.open al|
|00003b00| 72 65 61 64 79 29 2e 0d | 4e 6f 20 63 6f 6e 6e 65 |ready)..|No conne|
|00003b10| 63 74 69 6f 6e 20 69 73 | 20 6d 61 64 65 20 77 69 |ction is| made wi|
|00003b20| 74 68 20 61 20 66 69 6c | 65 20 6f 66 20 74 68 65 |th a fil|e of the|
|00003b30| 20 73 61 6d 65 20 6e 61 | 6d 65 20 65 76 65 6e 20 | same na|me even |
|00003b40| 69 66 20 69 74 20 65 78 | 69 73 74 73 2e 0d 0d 27 |if it ex|ists...'|
|00003b50| 73 79 73 74 65 6d 24 77 | 69 6e 64 6f 77 24 73 65 |system$w|indow$se|
|00003b60| 74 24 73 74 61 72 74 69 | 6e 67 24 70 6f 69 6e 74 |t$starti|ng$point|
|00003b70| 27 28 57 69 6e 64 6f 77 | 4e 75 6d 62 65 72 2c 53 |'(Window|Number,S|
|00003b80| 74 61 72 74 69 6e 67 50 | 6f 69 6e 74 29 20 26 0d |tartingP|oint) &.|
|00003b90| 27 73 79 73 74 65 6d 24 | 77 69 6e 64 6f 77 24 67 |'system$|window$g|
|00003ba0| 65 74 24 73 74 61 72 74 | 69 6e 67 24 70 6f 69 6e |et$start|ing$poin|
|00003bb0| 74 27 28 57 69 6e 64 6f | 77 4e 75 6d 62 65 72 2c |t'(Windo|wNumber,|
|00003bc0| 53 74 61 72 74 69 6e 67 | 50 6f 69 6e 74 29 2e 0d |Starting|Point)..|
|00003bd0| 0d 54 68 65 73 65 20 63 | 61 6e 20 62 65 20 75 73 |.These c|an be us|
|00003be0| 65 64 20 74 6f 20 67 65 | 74 20 61 6e 64 20 73 65 |ed to ge|t and se|
|00003bf0| 74 20 74 68 65 20 73 74 | 61 72 74 69 6e 67 20 70 |t the st|arting p|
|00003c00| 6f 69 6e 74 2e 20 4e 6f | 72 6d 61 6c 6c 79 20 79 |oint. No|rmally y|
|00003c10| 6f 75 20 6e 65 65 64 6e | 27 74 0d 62 6f 74 68 65 |ou needn|'t.bothe|
|00003c20| 72 20 77 69 74 68 20 74 | 68 65 73 65 2c 20 61 73 |r with t|hese, as|
|00003c30| 20 74 68 65 20 73 74 61 | 72 74 69 6e 67 20 70 6f | the sta|rting po|
|00003c40| 69 6e 74 20 69 73 20 61 | 75 74 6f 6d 61 74 69 63 |int is a|utomatic|
|00003c50| 61 6c 6c 79 20 75 70 64 | 61 74 65 64 2e 0d 0d 53 |ally upd|ated...S|
|00003c60| 6f 6d 65 74 69 6d 65 73 | 2c 20 68 6f 77 65 76 65 |ometimes|, howeve|
|00003c70| 72 2c 20 79 6f 75 20 27 | 6c 6c 20 6e 65 65 64 20 |r, you '|ll need |
|00003c80| 74 68 65 6d 2e 20 46 6f | 72 20 65 78 61 6d 70 6c |them. Fo|r exampl|
|00003c90| 65 2c 20 73 61 79 20 79 | 6f 75 27 76 65 20 77 72 |e, say y|ou've wr|
|00003ca0| 69 74 74 65 6e 0d 61 20 | 70 61 72 73 65 72 2c 20 |itten.a |parser, |
|00003cb0| 61 6e 64 20 79 6f 75 20 | 77 61 6e 74 20 74 6f 20 |and you |want to |
|00003cc0| 69 6e 64 69 63 61 74 65 | 20 65 72 72 6f 72 73 20 |indicate| errors |
|00003cd0| 74 6f 20 74 68 65 20 75 | 73 65 72 20 69 6e 20 74 |to the u|ser in t|
|00003ce0| 68 65 20 77 69 6e 64 6f | 77 2e 0d 57 68 65 6e 20 |he windo|w..When |
|00003cf0| 79 6f 75 20 64 69 73 70 | 6c 61 79 20 74 68 65 20 |you disp|lay the |
|00003d00| 65 72 72 6f 72 20 6d 65 | 73 73 61 67 65 20 61 73 |error me|ssage as|
|00003d10| 20 61 70 70 72 6f 70 72 | 69 61 74 65 2c 20 79 6f | appropr|iate, yo|
|00003d20| 75 27 6c 6c 20 77 61 6e | 74 20 74 6f 0d 72 65 73 |u'll wan|t to.res|
|00003d30| 65 74 20 74 68 65 20 77 | 69 6e 64 6f 77 20 65 6e |et the w|indow en|
|00003d40| 76 69 72 6f 6e 6d 65 6e | 74 20 6a 75 73 74 20 61 |vironmen|t just a|
|00003d50| 73 20 69 74 20 77 61 73 | 20 6a 75 73 74 20 62 65 |s it was| just be|
|00003d60| 66 6f 72 65 0d 74 68 65 | 20 65 72 72 6f 72 20 6f |fore.the| error o|
|00003d70| 63 63 75 72 65 64 2e 20 | 46 6f 72 20 74 68 69 73 |ccured. |For this|
|00003d80| 2c 20 79 6f 75 27 6c 6c | 20 6e 65 65 64 20 74 6f |, you'll| need to|
|00003d90| 20 67 65 74 20 74 68 65 | 20 53 74 61 72 74 69 6e | get the| Startin|
|00003da0| 67 20 50 6f 69 6e 74 20 | 62 65 66 6f 72 65 68 61 |g Point |beforeha|
|00003db0| 6e 64 2c 0d 61 6e 64 20 | 74 68 65 6e 20 72 65 73 |nd,.and |then res|
|00003dc0| 65 74 20 69 74 20 61 66 | 74 65 72 20 6f 75 74 70 |et it af|ter outp|
|00003dd0| 75 74 74 69 6e 67 20 74 | 68 65 20 65 72 72 6f 72 |utting t|he error|
|00003de0| 20 6d 65 73 73 61 67 65 | 2c 20 65 74 63 2e 0d 49 | message|, etc..I|
|00003df0| 20 68 61 76 65 20 61 20 | 72 61 74 68 65 72 20 63 | have a |rather c|
|00003e00| 6f 6d 70 6c 65 78 20 65 | 78 61 6d 70 6c 65 2c 20 |omplex e|xample, |
|00003e10| 73 6f 20 6d 61 69 6c 20 | 6d 65 20 69 66 20 79 6f |so mail |me if yo|
|00003e20| 75 27 64 20 6c 69 6b 65 | 20 69 74 2e 0d 0d 27 73 |u'd like| it...'s|
|00003e30| 79 73 74 65 6d 24 77 69 | 6e 64 6f 77 24 66 72 6f |ystem$wi|ndow$fro|
|00003e40| 6e 74 27 28 57 69 6e 64 | 6f 77 4e 75 6d 62 65 72 |nt'(Wind|owNumber|
|00003e50| 29 2e 0d 54 65 6c 6c 73 | 20 79 6f 75 20 77 68 69 |)..Tells| you whi|
|00003e60| 63 68 20 77 69 6e 64 6f | 77 20 69 73 20 61 74 20 |ch windo|w is at |
|00003e70| 74 68 65 20 66 72 6f 6e | 74 2e 0d 0d 27 73 79 73 |the fron|t...'sys|
|00003e80| 74 65 6d 24 77 69 6e 64 | 6f 77 24 67 65 74 24 6f |tem$wind|ow$get$o|
|00003e90| 75 74 70 75 74 27 28 57 | 69 6e 64 6f 77 4e 75 6d |utput'(W|indowNum|
|00003ea0| 62 65 72 29 2e 0d 54 65 | 6c 6c 73 20 79 6f 75 20 |ber)..Te|lls you |
|00003eb0| 77 68 69 63 68 20 69 73 | 20 74 68 65 20 63 75 72 |which is| the cur|
|00003ec0| 72 65 6e 74 20 6f 75 74 | 70 75 74 20 77 69 6e 64 |rent out|put wind|
|00003ed0| 6f 77 2e 0d 0d 27 73 79 | 73 74 65 6d 24 77 69 6e |ow...'sy|stem$win|
|00003ee0| 64 6f 77 24 73 65 74 24 | 6f 75 74 70 75 74 27 28 |dow$set$|output'(|
|00003ef0| 57 69 6e 64 6f 77 4e 75 | 6d 62 65 72 2c 53 74 61 |WindowNu|mber,Sta|
|00003f00| 74 75 73 29 2e 0d 54 68 | 65 20 64 65 73 69 67 6e |tus)..Th|e design|
|00003f10| 61 74 65 64 20 77 69 6e | 64 6f 77 20 62 65 63 6f |ated win|dow beco|
|00003f20| 6d 65 73 20 74 68 65 20 | 6f 75 74 70 75 74 20 77 |mes the |output w|
|00003f30| 69 6e 64 6f 77 2e 20 41 | 6e 79 20 65 72 72 6f 72 |indow. A|ny error|
|00003f40| 20 28 65 2e 67 2e 20 69 | 66 0d 74 68 65 20 77 69 | (e.g. i|f.the wi|
|00003f50| 6e 64 6f 77 20 69 73 20 | 72 65 61 64 2d 6f 6e 6c |ndow is |read-onl|
|00003f60| 79 2c 20 65 74 63 2e 20 | 77 69 6c 6c 20 62 65 20 |y, etc. |will be |
|00003f70| 72 65 70 6f 72 74 65 64 | 20 69 6e 20 53 74 61 74 |reported| in Stat|
|00003f80| 75 73 2e 20 41 20 53 74 | 61 74 75 73 20 6f 66 20 |us. A St|atus of |
|00003f90| 30 0d 6d 65 61 6e 73 20 | 4f 4b 2e 0d 0d 27 73 79 |0.means |OK...'sy|
|00003fa0| 73 74 65 6d 24 77 69 6e | 64 6f 77 24 73 65 6c 65 |stem$win|dow$sele|
|00003fb0| 63 74 27 28 57 69 6e 64 | 6f 77 4e 75 6d 62 65 72 |ct'(Wind|owNumber|
|00003fc0| 29 2e 0d 42 72 69 6e 67 | 20 74 68 65 20 77 69 6e |)..Bring| the win|
|00003fd0| 64 6f 77 20 74 6f 20 74 | 68 65 20 66 72 6f 6e 74 |dow to t|he front|
|00003fe0| 2e 0d 0d a5 4e 6f 74 65 | 2c 20 69 6e 20 74 68 65 |....Note|, in the|
|00003ff0| 20 66 6f 6c 6c 6f 77 69 | 6e 67 2c 20 77 68 65 72 | followi|ng, wher|
|00004000| 65 20 53 74 61 72 74 20 | 61 6e 64 20 45 6e 64 20 |e Start |and End |
|00004010| 63 68 61 72 61 63 74 65 | 72 20 6f 66 66 73 65 74 |characte|r offset|
|00004020| 73 20 61 72 65 20 6d 65 | 6e 74 69 6f 6e 65 64 2c |s are me|ntioned,|
|00004030| 20 63 68 61 72 61 63 74 | 65 72 20 6e 75 6d 62 65 | charact|er numbe|
|00004040| 72 73 20 73 74 61 72 74 | 20 61 74 20 30 2e 20 54 |rs start| at 0. T|
|00004050| 68 65 20 72 61 6e 67 65 | 20 66 72 6f 6d 20 73 74 |he range| from st|
|00004060| 61 72 74 20 74 6f 20 66 | 69 6e 69 73 68 20 69 73 |art to f|inish is|
|00004070| 20 69 6e 63 6c 75 73 69 | 76 65 20 6f 66 20 74 68 | inclusi|ve of th|
|00004080| 65 20 73 74 61 72 74 69 | 6e 67 20 63 68 61 72 61 |e starti|ng chara|
|00004090| 63 74 65 72 20 61 6e 64 | 20 65 78 63 6c 75 73 69 |cter and| exclusi|
|000040a0| 76 65 20 6f 66 20 74 68 | 65 20 65 6e 64 69 6e 67 |ve of th|e ending|
|000040b0| 20 63 68 61 72 61 63 74 | 65 72 2e 0d 0d 27 73 79 | charact|er...'sy|
|000040c0| 73 74 65 6d 24 77 69 6e | 64 6f 77 24 67 65 74 24 |stem$win|dow$get$|
|000040d0| 73 65 6c 65 63 74 69 6f | 6e 27 28 57 69 6e 64 6f |selectio|n'(Windo|
|000040e0| 77 4e 75 6d 62 65 72 2c | 53 74 61 72 74 2c 45 6e |wNumber,|Start,En|
|000040f0| 64 29 0d 54 65 6c 6c 73 | 20 79 6f 75 20 74 68 65 |d).Tells| you the|
|00004100| 20 73 65 6c 65 63 74 69 | 6f 6e 20 73 74 61 72 74 | selecti|on start|
|00004110| 20 61 6e 64 20 65 6e 64 | 2e 0d 0d 27 73 79 73 74 | and end|...'syst|
|00004120| 65 6d 24 77 69 6e 64 6f | 77 24 73 65 74 24 73 65 |em$windo|w$set$se|
|00004130| 6c 65 63 74 69 6f 6e 27 | 28 57 69 6e 64 6f 77 4e |lection'|(WindowN|
|00004140| 75 6d 62 65 72 2c 53 74 | 61 72 74 2c 45 6e 64 29 |umber,St|art,End)|
|00004150| 0d 41 6c 6c 6f 77 73 20 | 79 6f 75 20 74 6f 20 73 |.Allows |you to s|
|00004160| 65 74 20 74 68 65 20 73 | 65 6c 65 63 74 69 6f 6e |et the s|election|
|00004170| 20 73 74 61 72 74 20 61 | 6e 64 20 65 6e 64 2e 0d | start a|nd end..|
|00004180| 0d 27 73 79 73 74 65 6d | 24 77 69 6e 64 6f 77 24 |.'system|$window$|
|00004190| 73 65 74 24 6f 75 74 6c | 69 6e 65 27 28 57 69 6e |set$outl|ine'(Win|
|000041a0| 64 6f 77 4e 75 6d 62 65 | 72 2c 53 74 79 6c 65 4e |dowNumbe|r,StyleN|
|000041b0| 75 6d 62 65 72 2c 53 74 | 61 72 74 2c 45 6e 64 2c |umber,St|art,End,|
|000041c0| 4f 75 74 6c 69 6e 65 52 | 65 66 65 72 65 6e 63 65 |OutlineR|eference|
|000041d0| 29 2e 0d 4f 6e 6c 79 20 | 61 20 73 74 79 6c 65 20 |)..Only |a style |
|000041e0| 31 20 69 73 20 64 65 66 | 69 6e 65 64 2e 0d 0d 27 |1 is def|ined...'|
|000041f0| 73 79 73 74 65 6d 24 77 | 69 6e 64 6f 77 24 63 6c |system$w|indow$cl|
|00004200| 65 61 72 24 6f 75 74 6c | 69 6e 65 27 28 57 69 6e |ear$outl|ine'(Win|
|00004210| 64 6f 77 4e 75 6d 62 65 | 72 2c 4f 75 74 6c 69 6e |dowNumbe|r,Outlin|
|00004220| 65 52 65 66 65 72 65 6e | 63 65 29 2e 0d 0d 27 73 |eReferen|ce)...'s|
|00004230| 79 73 74 65 6d 24 77 69 | 6e 64 6f 77 24 62 75 66 |ystem$wi|ndow$buf|
|00004240| 66 65 72 24 73 69 7a 65 | 27 28 57 69 6e 64 6f 77 |fer$size|'(Window|
|00004250| 4e 75 6d 62 65 72 2c 55 | 6e 72 65 61 64 42 79 74 |Number,U|nreadByt|
|00004260| 65 73 4c 65 66 74 49 6e | 53 65 6c 65 63 74 69 6f |esLeftIn|Selectio|
|00004270| 6e 29 2e 0d 0d 46 6f 72 | 20 65 78 61 6d 70 6c 65 |n)...For| example|
|00004280| 2c 20 74 6f 20 68 69 67 | 68 6c 69 67 68 74 20 74 |, to hig|hlight t|
|00004290| 68 65 20 66 69 72 73 74 | 20 31 30 30 20 63 68 61 |he first| 100 cha|
|000042a0| 72 61 63 74 65 72 73 20 | 69 6e 20 74 68 69 73 20 |racters |in this |
|000042b0| 66 69 6c 65 3a 0d 0d 27 | 73 79 73 74 65 6d 24 77 |file:..'|system$w|
|000042c0| 69 6e 64 6f 77 24 66 72 | 6f 6e 74 27 28 57 69 6e |indow$fr|ont'(Win|
|000042d0| 64 6f 77 4e 75 6d 62 65 | 72 29 2c 0d 27 73 79 73 |dowNumbe|r),.'sys|
|000042e0| 74 65 6d 24 77 69 6e 64 | 6f 77 24 73 65 74 24 6f |tem$wind|ow$set$o|
|000042f0| 75 74 6c 69 6e 65 27 28 | 57 69 6e 64 6f 77 4e 75 |utline'(|WindowNu|
|00004300| 6d 62 65 72 2c 31 2c 30 | 2c 31 30 30 2c 4f 75 74 |mber,1,0|,100,Out|
|00004310| 6c 69 6e 65 52 65 66 65 | 72 65 6e 63 65 29 2e 0d |lineRefe|rence)..|
|00004320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004380| 00 00 01 00 00 00 01 30 | 00 00 00 30 00 00 00 32 |.......0|...0...2|
|00004390| 20 20 20 20 20 20 20 20 | 20 20 20 74 6f c9 20 7d | | to. }|
|000043a0| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|000043b0| 12 4f 70 65 6e 20 50 72 | 6f 6c 6f 67 20 45 78 74 |.Open Pr|olog Ext|
|000043c0| 72 61 73 45 02 00 00 00 | 50 61 72 74 53 49 54 21 |rasE....|PartSIT!|
|000043d0| 00 00 50 61 72 74 53 49 | 54 21 00 00 00 00 00 00 |..PartSI|T!......|
|000043e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000043f0| 00 00 a9 c7 3a 29 00 00 | 00 00 00 00 01 62 20 20 |....:)..|.....b |
|00004400| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004410| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004420| 20 20 20 20 20 20 20 20 | 20 69 74 73 20 70 61 72 | | its par|
|00004430| 61 6d 65 74 65 72 20 70 | 61 73 73 69 6e 67 0d 20 |ameter p|assing. |
|00004440| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004450| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004460| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004470| 20 20 20 20 20 20 20 20 | 20 73 63 68 65 6d 65 29 | | scheme)|
|00004480| 00 00 00 2c 01 02 80 08 | 00 00 05 31 2e 30 2e 32 |...,....|...1.0.2|
|00004490| 1f 44 6f 63 75 6d 65 6e | 74 73 20 66 6f 72 20 4f |.Documen|ts for O|
|000044a0| 70 65 6e 20 50 72 6f 6c | 6f 67 20 31 2e 30 2e 32 |pen Prol|og 1.0.2|
|000044b0| 00 00 01 00 00 00 01 30 | 00 00 00 30 00 00 00 32 |.......0|...0...2|
|000044c0| 00 46 73 f8 19 b6 00 00 | 00 1c 00 32 00 00 76 65 |.Fs.....|...2..ve|
|000044d0| 72 73 00 00 00 0a 00 01 | ff ff 00 00 00 00 00 46 |rs......|.......F|
|000044e0| 73 8c 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |s.......|........|
|000044f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+